golib/net/gitshallow
AJ ONeal 631f32cf95
fix(gitshallow): mirror upstream with fetch+reset instead of pull --ff-only
The shallow clone is a read-only mirror, so a force-push on the
upstream branch caused pull --ff-only to bail with "refusing to merge
unrelated histories". Switch to git fetch + git reset --hard
origin/<branch> so the local copy always tracks upstream, force-push
or not. Auto-detects the branch from origin/HEAD when Branch is empty.
2026-04-20 17:23:53 -06:00
..