@matheusbsbs / matheus-bagliano / commits / 98533b90cb
Fork 0

Avoid wasting memory while keeping track of what we have during fetch.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Sep 15, 2005 at 15:06 UTC 98533b90cb8e88484cb381334b19cbf4f7cf92b1
1 file changed +1
fetch.c
+1
@@ -207,6 +207,7 @@ int pull(char *target)
207 unsigned char sha1[20];
208 int fd = -1;
209
210 + save_commit_buffer = 0;
211 if (write_ref && current_ref) {
212 fd = lock_ref_sha1(write_ref, current_ref);
213 if (fd < 0)