aboutsummaryrefslogtreecommitdiff
path: root/fetch.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-15 15:06:39 -0700
committerJunio C Hamano <junkio@cox.net>2005-09-15 15:06:39 -0700
commit98533b90cb8e88484cb381334b19cbf4f7cf92b1 (patch)
treea7e2d4e3a3720ff981c01aeef5aaa6c01f4fa4eb /fetch.c
parent60ab26de9970ce829c95eb11ebb407fe95780148 (diff)
downloadgit-98533b90cb8e88484cb381334b19cbf4f7cf92b1.tar.gz
git-98533b90cb8e88484cb381334b19cbf4f7cf92b1.tar.xz
Avoid wasting memory while keeping track of what we have during fetch.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch.c')
-rw-r--r--fetch.c1
1 files changed, 1 insertions, 0 deletions
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)