Files
zeekay 0392c33f14 Push the object, not a name a writer could have taken
A refspec whose source is a bare commit id is read as a ref's name before
an object's, and a writer can make refs/heads/<id> or refs/tags/<id> to be
read in its place: protected main was moved to the writer's commit, and
tags were made to point at it, annotated ones too. The sync now pushes
<id>^{object}, which names the object whatever refs there are, and keeps an
annotated tag a tag object. The importer also leaves out upstream branches
and tags named like an object id, with a notice.

Bot branches in any letter case, and whatever an earlier version kept of
them, staged or recorded, are removed on every run, since the fetch's
exclusions only match the lower case. A branch the hooks decline is not
offered to them again for an hour unless its tip or the protected branch
rules change, as a tag already was, so a repo with many protected
branches costs one hooked push for each, not one at every sync.

The dead isProtected is gone and golangci-lint is clean on what this branch
changes.

Claude-Session: https://claude.ai/code/session_015XYKLo5aivJF2MHLneVUYc
2026-11-08 15:58:12 -08:00
..