Make .git/safe idempotent