Files
zeekay 0fc44ba806 Close the object-named ref decoys outside the sync
A refspec whose source is a bare id is read as a ref's name first, and
three more places in the forge pushed one: create a branch from a
commit, update a branch, and restore a deleted one. They push
git.ObjectName(id), <id>^{object}, now, and the helper that the sync had
for it moves to modules/git so there is one.

Writers could still make the decoys. The tag and release API runs no hook,
so createTag refuses a name that is an object id itself. Pre-receive
refuses refs/<id> too, which git also tries for a name, and anything under
refs/remotes/, which its default case let through.

Claude-Session: https://claude.ai/code/session_015XYKLo5aivJF2MHLneVUYc
2026-11-08 16:29:25 -08:00
..

Git Module

This module accesses Git through shell commands. It began as a separate Go module and lives here so changes to it travel with the code that uses it.