If two processes try to do something to a Git repository at the same time, is there a chance of corrupting the data? Or does Git have some sort of locking mechanism to prevent this?
More specifically, what happens if git fetch and git gc are run at the same time? If one of them fails, then that's a risk I can live with. But if the repo gets borked, then that's not OK.