-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
"git cat-file: could not get object info" in webui #6525
Comments
I just tracked the $ sudo strace -v -s64 -f -e execve -p $(pgrep gogs) 2>&1 | grep -oP 'cat-file.*?\]' The responsible git command seems to be: $ sudo docker exec -it -u git gogs bash
bash-5.0$ cd /data/git/gogs-repositories/kjhammerle/cube-game-plus-plus.git
bash-5.0$ git cat-file -t c187e25ecdba5875f5765acc967e35017985629e
fatal: git cat-file: could not get object info
bash-5.0$ |
$ sudo docker exec -it -u git gogs bash
bash-5.0$ cd /data/git/gogs-repositories/kjhammerle/cube-game-plus-plus.gitbash-5.0$ git diff --full-index -M 5b06c611e21f994d38bb34ff1488f5ee0227d45d 914108b98f3ce4417f2af5b8b55a09fd68e8ed3f | grep -B 2 c187e25ecdba5875f5765acc967e35017985629e
diff --git a/enet b/enet
deleted file mode 160000
index c187e25ecdba5875f5765acc967e35017985629e..0000000000000000000000000000000000000000
--
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit c187e25ecdba5875f5765acc967e35017985629e
bash-5.0$ |
so in summary: the issue is caused by the |
associated source code:
in https://github.com/gogs/gogs/blob/v0.12.3/templates/repo/diff/box.tmpl#L81 |
associated:
https://github.com/gogs/git-module/blob/v1.1.4/commit.go#L170 |
…f of commit deleting submodule gogs#6525
Describe the bug
Gogs responds to requests to https://git.hammerle.me/kjhammerle/cube-game-plus-plus/commit/914108b98f3ce4417f2af5b8b55a09fd68e8ed3f
with HTTP 500 and the following response body:
I see no apparent reason why that particular commit would be invalid.
The tree view for the same commit works as expected: https://git.hammerle.me/kjhammerle/cube-game-plus-plus/src/914108b98f3ce4417f2af5b8b55a09fd68e8ed3f
Gogs version and commit
Git version
Operating system
running
docker.io/gogs/gogs@sha256:0195b095d0b29e5fd9fd44c0e4a544c981f8c8b2b7fb18ca61824694e31d279e
via dockerDatabase
sqlite3
To Reproduce
Can you reproduce the bug at https://try.gogs.io?
Different error on try.gogs.io, see https://try.gogs.io/fphammerle/cube-game-plus-plus/commit/914108b98f3ce4417f2af5b8b55a09fd68e8ed3f
Expected behavior
Webpage showing diff of commit, like https://git.hammerle.me/kjhammerle/cube-game-plus-plus/commit/5b06c611e21f994d38bb34ff1488f5ee0227d45d
Actual behavior
HTTP500 response with
(no gogs UI)
Additional context
No new entry in
log/gogs.log
when accessing mentioned url.The text was updated successfully, but these errors were encountered: