-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 error in renderDirectory(): GetCommitsInfo is trying to get root commit's parent #2005
Comments
@wolfgang42 Any chance you could sanitize the repo for us? As far as I can tell, file contents should not matter, only directory/submodule structure. If you clear all file contents (and even change file and directory names, if those are sensitive), that should be enough for us to reproduce the bug. |
@ethantkoenig Any suggestions on how to sanitize several hundred commits quickly? It seems that it's not just the current directory structure, I dropped |
@wolfgang42 Okay, if commit history matters, then sanitizing may not be an option. Assuming that filenames are not sensitive, could you do the following?
That would be very helpful in diagnosing the issue. Thanks! |
I'm having trouble building gitea from source--I did |
@wolfgang42 Try |
You need to run: |
I've got it running now, but I can't figure out where to look for the output from your print statements. I don't see it in either |
@wolfgang42 When I run it locally using docker, I see the print statements in the stdout:
If you're running docker in detached mode (i.e. |
I figured it out--I forgot to check out the correct branch! 😳 Having sorted that out, here's the complete log I get when I try to view the page: https://static.linestarve.com/ext/github/gitea-issue2005-log.txt |
@wolfgang42 I think I have a fix. Please pull from the debug branch and let me know if that fixes it. |
@ethantkoenig Yep, that fixed it. Thank you! |
closed by #2014 |
[x]
):2017/06/18 17:00:17 [...routers/repo/view.go:53 renderDirectory()] [E] GetCommitsInfo: exit status 128 - fatal: bad revision '00a3cc4831ab308a739955f6e9eaecdc1198e7bb^'
Description
I have a fairly complex repository (unfortunately not one I can make public) which I recently uploaded to Gitea. For certain directories in the repository (e.g.
/wolf/wolf-www/src/master/public_html/inc
), I get a 500 error when I attempt to view them. The problem seems to be that it's trying to get00a3cc4^
, but00a3cc4
is the root of the repository and therefore has no parent commit. This looks vaguely similar to #1836, but it looks like that was a different root cause which has been fixed.The text was updated successfully, but these errors were encountered: