mirror of
https://github.com/hanzoai/forge.git
synced 2026-11-23 05:50:59 +00:00
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