You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to access a certain tag in gogs (accessing /user/repo/src/tagname) fails with error code 500 if that tag has been created as an annotated, rather than a lightweight tag (i.e. -a, -s or -m was applied to git tag).
The log shows:
[Macaron] Started GET /root/gogstest/src/withmessage for 127.0.0.1
2014/09/29 13:12:09 [view.go:123 Home()] [E] ListEntries: exit status 128
[Macaron] Completed /root/gogstest/src/withmessage 500 Internal Server Error in 35.711574ms
As far as my printf debugging went, tree.ListEntries tries to operate on an empty subtree (Commit ID 0000...). Haven't yet fully investigated but this seems to stem from annotated tags having distinct commit objects compared to lightweight tags.
Tested in master (commit 3cfa4a5) as well as dev branch (commit cd084da).
Steps to reproduce:
Create git repo
Create annotated tag with git tag failtag -m "This will fail"
Add remote gogs repository and git push --tags
In Gogs, access Releases page for the repo and click on failtag release.
The text was updated successfully, but these errors were encountered:
Trying to access a certain tag in gogs (accessing /user/repo/src/tagname) fails with error code 500 if that tag has been created as an annotated, rather than a lightweight tag (i.e. -a, -s or -m was applied to git tag).
The log shows:
As far as my printf debugging went, tree.ListEntries tries to operate on an empty subtree (Commit ID 0000...). Haven't yet fully investigated but this seems to stem from annotated tags having distinct commit objects compared to lightweight tags.
Tested in master (commit 3cfa4a5) as well as dev branch (commit cd084da).
Steps to reproduce:
git tag failtag -m "This will fail"
git push --tags
The text was updated successfully, but these errors were encountered: