From: Junio C Hamano Date: Thu, 15 Sep 2005 22:06:39 +0000 (-0700) Subject: Avoid wasting memory while keeping track of what we have during fetch. X-Git-Tag: v0.99.7~31 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=98533b90cb8e88484cb381334b19cbf4f7cf92b1;p=git.git Avoid wasting memory while keeping track of what we have during fetch. Signed-off-by: Junio C Hamano --- diff --git a/fetch.c b/fetch.c index 7db35f0dc..71c4f41a6 100644 --- a/fetch.c +++ b/fetch.c @@ -207,6 +207,7 @@ int pull(char *target) unsigned char sha1[20]; int fd = -1; + save_commit_buffer = 0; if (write_ref && current_ref) { fd = lock_ref_sha1(write_ref, current_ref); if (fd < 0)