forgejo/modules/repository
Gusted 6da194fae8 fix: make syncronize tags to database handle annoted tags
- When an admin wants syncronize tags in the Git data to the database
via the admin dashboard all annoted tags loses their title. This was
caused because the code didn't correctly handle annoted tags. Annoted
tags have their own objectID to store the annoted message, unlike
'normal' tags which point to the commitID. While the function was being
run for annoted tags, the code thought it found a mismatch in the
objectIDs, because the stored version was actually correct which pointed
to the commitID but the code found the objectID of the annoted tag.
- Make `SyncReleasesWithTags` corectly handle annoted tags.
- Added unit and integration tests.
- Resolves #5628
2024-10-21 16:21:07 +02:00
..
branch.go
branch_test.go
collaborator.go
collaborator_test.go
commits.go
commits_test.go
create.go
create_test.go
delete.go
env.go
fork.go
hooks.go
init.go
init_test.go
license.go
license_test.go
main_test.go
push.go
repo.go
repo_test.go
temp.go