Revert "[Git] Fix issue with pack files remaining open forever."

This reverts commit 349c82e8d678b765687f7390e59e1c1a16a2bf59.