Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 19:26:09 +01:00
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 Support asciicast files as new markup (#22448) 2023-01-18 08:46:58 +08:00
common [GITEA] test markdown CleanValue to prevent regression 2024-02-05 16:09:41 +01:00
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 Rework markup link rendering (#26745) 2024-01-15 08:49:24 +00:00
markdown Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
mdstripper Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-05-05 08:38:16 +01:00
orgmode Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
tests/repo/repo1_filepreview Update test 2024-03-28 04:20:13 +01:00
camo.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
camo_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
file_preview.go Fix issue where rendering stops after the first invalid parmalink 2024-04-19 18:21:21 +02:00
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 [CHORE] Remove github.com/yuin/goldmark-meta 2024-07-07 03:18:13 +02:00
renderer_test.go Move IsReadmeFile* from modules/markup/ to modules/util (#22877) 2023-02-13 15:01:09 -05:00
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