Files
gotea/modules
lotherk 75fed4414d
giteabot backport / giteabot (push) Skipped
release-nightly-snapcraft / build-and-publish (ubuntu-24.04) (push) Canceled after 0s
release-nightly-snapcraft / build-and-publish (ubuntu-24.04-arm) (push) Canceled after 0s
release-nightly / nightly-binary (push) Canceled after 0s
release-nightly / nightly-container (push) Canceled after 0s
modules/git: migrate IsReferenceExist to got cat
Route package-level and Repository.IsReferenceExist through
modules/got.ObjectExists, which probes `got cat -r` without -P. got cat
resolves full/abbreviated object IDs, refs and tags but not path names,
matching the commit_checker/merge_tree callers that pass commit IDs and
the ref callers that pass ref names.

This also removes the gogit/nogogit inconsistency where gogit rejected
blob hashes and short hashes for IsReferenceExist; the got-backed path
accepts them in both builds. IsObjectExist is left alone: its nogogit
CatFileBatch implementation has different semantics and its only caller
is marked FIXME.

Verified: GOTMPDIR=/home/lotherk/.cache/gotmp go test ./modules/got ./modules/git -count=1
2026-11-24 06:38:41 +00:00
..
2026-07-12 17:14:09 +00:00