diff options
author | Jason Song <i@wolfogre.com> | 2024-08-09 04:40:45 +0200 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-08-13 09:05:43 +0200 |
commit | 83565de2c04090a522aee1510216b1501beeb673 (patch) | |
tree | 6ef732cf672e0d9b97d46822d588929b076266b2 /custom | |
parent | Support compression for Actions logs (#31761) (diff) | |
download | forgejo-83565de2c04090a522aee1510216b1501beeb673.tar.xz forgejo-83565de2c04090a522aee1510216b1501beeb673.zip |
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
Diffstat (limited to 'custom')
0 files changed, 0 insertions, 0 deletions