From: Junio C Hamano Date: Tue, 26 Feb 2013 16:07:32 GMT Subject: Re: gc does not clean up after itself when not enough disk space Message-ID: <7v1uc3njnf.fsf@alter.siamese.dyndns.org> In-Reply-To: <512CD703.4080302@gmail.com> "jones.noamle" writes: > # git gc > Counting objects: 44626, done. > Delta compression using up to 8 threads. > Compressing objects: 100% (7756/7756), done. > fatal: sha1 file '.git/objects/pack/tmp_pack_uJ0E5b' write error: No > space left on device In general when we encounter an unexpected error, we tend to try leaving things as they are so that we can help diagnosing the failure. But when you ran out of disk space I would agree that it may be sensible to remove a temporary file we didn't manage to write out in full.