From: Shawn O. Pearce Date: Fri, 14 Sep 2007 07:31:25 +0000 (-0400) Subject: Always ensure the pack.keep file is removed by git-fetch X-Git-Tag: v1.5.4-rc0~292^2~53 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e4022ed2c85825f238661e3e532b0bb108b5e318;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin-fetch.c b/builtin-fetch.c index 8e433d1bf..8b0fdbe90 100644 --- a/builtin-fetch.c +++ b/builtin-fetch.c @@ -13,6 +13,20 @@ static const char fetch_usage[] = "git-fetch [-a | --append] [--upload-pack