-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
infinite loop on seeing a folder on Windows #1933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm, definitely troubling that SHA1 hashes are being printed. Could you add the print statements I had you add last time (#1836 (comment))? |
@andreynering Thanks, could you run the following command (from the root of the gitea repo you were testing on), and show me the output?
EDIT: was previously missing the caret |
@ethantkoenig Sorry for the delay. It's empty. There's no output for this command. |
@andreynering Weird. You ran the command on Windows, right? The command that corresponds to the log line
and the fact that the next log line is different indicates that when this ran in gitea, the output was not empty (becuase the |
The UNIX equivalent (forward slashes instead of back slashes)
does not returns a non-empty output on Linux, so it must be something wrong with the formatting of the command for Windows? @andreynering Can you figure what's wrong with the formatting of the command I had you run? Do the backslashes need to be esacped (i.e. |
@ethantkoenig I just tried with forward slash, and got the same output both on Linux and Windows:
Git requires forward slashes on any OS. |
@andreynering Just to confirm, so that we can fix this once and for all:
|
On windows both ways seems to be working for me but in response there is always forward slashes:
|
I debugged again with print statements, and there ist'n any separators, just the folder or file name. Maybe this is the problem? Browsing Gitea root ( entryName: .github
entryName: cmd
entryName: conf
entryName: docker
entryName: integrations
entryName: models
entryName: modules
entryName: options
entryName: public
entryName: routers
entryName: scripts
entryName: templates
entryName: vendor
entryName: .dockerignore
entryName: .drone.yml
entryName: .drone.yml.sig
entryName: .editorconfig
entryName: .gitattributes
entryName: .gitignore
entryName: .lgtm
entryName: CHANGELOG.md
entryName: CONTRIBUTING.md
entryName: DCO
entryName: Dockerfile
entryName: Dockerfile.rpi
entryName: LICENSE
entryName: MAINTAINERS
entryName: Makefile
entryName: README.md
entryName: README_ZH.md
entryName: main.go
TreePath: Browsing Gitea's entryName: admin
entryName: api
entryName: dev
entryName: org
entryName: repo
entryName: user
entryName: home.go
entryName: init.go
entryName: install.go
TreePath: routers
As I have noticed, yes and yes. Maybe some versions also accept $ git version
git version 2.10.2.windows.1 |
@andreynering Sorry to keep bothering you, but could you show me the I think you are right that there won't ever be any file separators in the tree entries though. |
I'm away from my computer, but will check as soon as possible. |
@ethantkoenig For visiting entryName: admin
entryName: convert
entryName: misc
entryName: org
entryName: repo
entryName: user
entryName: utils
entryName: api.go
TreePath: routers/api/v1 |
@andreynering Could you checkout https://github.com/ethantkoenig/gitea/tree/debug/get_commit_infos and let me know if it fixes your problem? |
@ethantkoenig Sorry, not fixed. Still infinite loop. |
@andreynering Added another change to the branch, could you pull and try again? |
@ethantkoenig 🎉 🚀 💯 Congrats. It's fixed now. Here's the log if you are curious. I visited Gitea's root, then |
/cc @ethantkoenig Sorry for bothering you again. I tried to fix it, but couldn't.
To reproduce:
routers/
folder in the web UI. Browser waits forever, theres a loop on the serverTo debug I added the following line after this line:
Here's the output log
The text was updated successfully, but these errors were encountered: