I cannot reproduce. The pack files generated by ‘sudo git gc’ are owned by root, but Git never writes to pack files except when initially creating them, so this doesn’t cause any problems.
How do you know that your repository was damaged? Can you give instructions to reproduce the problem from scratch?
I cannot reproduce. The pack files generated by ‘sudo git gc’ are owned by root, but Git never writes to pack files except when initially creating them, so this doesn’t cause any problems.
How do you know that your repository was damaged? Can you give instructions to reproduce the problem from scratch?