gitserver: set gc.auto 0 if we are managing git gc
Created by: stefanhengl
This disables background garbage collection on a repository level.
We keep getting reports of corrupted repos, most likely because sg maintenance runs at the same time as a background git-gc job.
We already disabled garbage collection for our fetch commands but apparently that wasn't enough.
Test plan
- existing unit tests
- I ran a local instance of sourcegraph and verified that all repos in .sourcegraph/repos/ had the config set after the first cleanup run.