You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read a Persisted remote.<name>.mirror on a Bare Push in the Write Guard #3020
Found by the local review of the change closing #3007. Develop's guard shares it. #2943 lists persisted push.default=matching and remote.origin.push among the config a bare push does not consult, and this is a third such key, not named there.
A Persisted remote.<name>.mirror Makes a Bare Push a Mirror
With remote.origin.mirror=true set by an earlier command or session, a bare git push or git push origin force-updates and prunes every ref, exactly as --mirror does. A dry run in a throwaway repository confirmed it deletes a remote develop that has no local counterpart. The guard reads such a push as a bare push of the current branch only, so it allows it from a feature branch where develop's rules hold deletion or non_fast_forward.
Possible Direction
Read remote.<name>.mirror for the remote a bare push or a refspec-less push names. Where it is true, read the push as --mirror, a force and a delete against every protected default. Where the config cannot be read, fail closed on the protected defaults.
Activity
Read Completed, Pruned, and Slash-Remote Push Targets in the Write Gu…
ptr727 commentedon Oct 15, 2026
Claimed for an engineering-track lane (handoff #3040 resume). Branch:
feature/guard-bare-push-target-3019. Predicted file set:host-setup/agent-safety/claude/gh-write-guard.py,host-setup/agent-safety/claude/test_install.py,host-setup/agent-safety/README.md,host-setup/agent-safety/claude/README.md.Read a Bare Push's Destination From Branch Config, a Persisted Mirror…