test(hooks): drop a duplicate rotation test, cover temp sweep and uninstall after reclaim

Commit

peyton-alt5h ago

TestInstallGitHook_KeepsBothBackupAndNewForeignHook already asserts rotation end to end. Add the two uncovered paths: an interrupted install's leftover temp copy is swept, and uninstalling right after a reclaim keeps the user's hook in .legacy and removes Entire's keep copy.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Entire-Checkpoint: 01M494Z14VJE0DJWSCZAFBX3ZK

Checkpoints

Triaging Git Hooks Tickets and Adversarial Review

Claude CodeOpus 5.5
View session
Checkpoint 1