Every got checkout creates refs/got/worktree/base-<uuid> in the bare repo. Delete it in the publisher trap so repeated pushes do not accumulate refs and block object cleanup, and assert the ref count stays stable in the hook test. Assisted-by: OpenCode:DeepSeek-V4.1-Flash