0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-06 19:53:02 -05:00
forgejo/modules/markup
Giteabot 3e091b9bac
Fix IsObjectExist with gogit () ()
Backport  by @wolfogre

Fix .

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  because it reports that all blob objects do not
exist.

Co-authored-by: Jason Song <i@wolfogre.com>
(cherry picked from commit 144648a4afdd93d534875a86c50ec61c860878f3)
2024-08-11 09:41:23 +02:00
..
asciicast
common
console
csv
external
markdown
mdstripper
orgmode
tests/repo/repo1_filepreview
camo.go
camo_test.go
file_preview.go
html.go Fix IsObjectExist with gogit () () 2024-08-11 09:41:23 +02:00
html_internal_test.go [BUG] Render references to cross-repo issues with external issues 2024-08-07 05:43:12 +00:00
html_test.go
renderer.go
renderer_test.go
sanitizer.go disallow javascript: URI in the repository description 2024-08-09 05:57:13 +00:00
sanitizer_test.go disallow javascript: URI in the repository description 2024-08-09 05:57:13 +00:00