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

Someone will love me for this, I hope. :(