-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
500 when filename starts with ':' #2373
Comments
Thanks your report! |
Never mind, reproduced. |
Yeah, you reproduced it! I think it has something to do with git-module that is another github project of yours. |
Yes, I've found the way to solve it, working on it. |
👍 |
OK, |
- update required version of git-module for #2373
See in action: https://try.gogs.io/unknwon/issue-2373 |
I confirmed that the problem has gone. |
🍻 |
I tried migrating an existing repo into Gogs, but it shows 500 server error.
Log message showed like below:
routers/repo/view.go:134 Home()
[E} GetCommitsInfo: GetCommitByPath (/:source): Length must be 40.
I found out that the filename ':source' caused the error.
After I renamed the filename to be without ':', pushed the original repo and retried migration, it works without any error.
However, since the name is still starting with ':' in the other branches, the error shows whenever I change the branches.
I'd like you to fix this problem so that I don't have to rename files staring with a colon.
The text was updated successfully, but these errors were encountered: