0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-19 15:04:40 +01:00
gitea/modules/markup
Jason Song f4d3120f9d
Fix IsObjectExist with gogit (#31790)
Fix #31271.

When gogit is enabled, `IsObjectExist` calls
`repo.gogitRepo.ResolveRevision`, which is not correct. It's for
checking references not objects, it could work with commit hash since
it's both a valid reference and a commit object, but it doesn't work
with blob objects.

So it causes #31271 because it reports that all blob objects do not
exist.
2024-08-09 02:40:45 +00:00
..
asciicast
common
console
csv
external
markdown
mdstripper
orgmode
camo_test.go
camo.go
html_codepreview_test.go
html_codepreview.go
html_internal_test.go
html_link.go
html_node.go
html_test.go
html.go Fix IsObjectExist with gogit (#31790) 2024-08-09 02:40:45 +00:00
main_test.go
renderer_test.go
renderer.go
sanitizer_custom.go
sanitizer_default_test.go
sanitizer_default.go
sanitizer_description_test.go
sanitizer_description.go
sanitizer.go