Avoid running the git gc in the background
Avoid running the git garbage collector in the background on a temporary that will be moved to a new place.
If the directory is moved before git gc completes its operation, the repository may end up in a corrupted state.