Code

Always ensure the pack.keep file is removed by git-fetch
authorShawn O. Pearce <spearce@spearce.org>
Fri, 14 Sep 2007 07:31:25 +0000 (03:31 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Sep 2007 10:22:31 +0000 (03:22 -0700)
commite4022ed2c85825f238661e3e532b0bb108b5e318
tree662dca9a9593db9183f71eea44985693a669ae4d
parent1788c39cd0742439b9bedc28bc10bc4d105b6c0f
Always ensure the pack.keep file is removed by git-fetch

If we are using a native transport and the transport chose to
save the packfile it may have created a .keep file to protect
the packfile from a concurrently running git-repack process.

In such a case the git-fetch process should make sure it will
unlink the .keep file even if it fails to update any refs as
otherwise the newly downloaded packfile's diskspace will never
be reclaimed if the objects are not actually referenced.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch.c