forgejo/modules/markup
Jason Song 83565de2c0
Fix IsObjectExist with gogit (#31790) (tests only)
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.

(cherry picked from commit f4d3120f9d1de6a260a5e625b3ffa6b35a069e9b)

Conflicts:
  trivial resolution because go-git support was dropped https://codeberg.org/forgejo/forgejo/pulls/4941
2024-08-13 09:05:43 +02:00
..
asciicast
common
console Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
csv Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
external
markdown Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
mdstripper
orgmode Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
tests/repo/repo1_filepreview
camo.go
camo_test.go
file_preview.go
html.go Fix IsObjectExist with gogit (#31790) (tests only) 2024-08-13 09:05:43 +02:00
html_internal_test.go [BUG] Render references to cross-repo issues with external issues 2024-08-07 03:19:26 +02:00
html_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
renderer.go
renderer_test.go
sanitizer.go disallow javascript: URI in the repository description 2024-08-09 07:04:01 +02:00
sanitizer_test.go disallow javascript: URI in the repository description 2024-08-09 07:04:01 +02:00