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

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-09-15 15:06:39 -07:00
parent 60ab26de99
commit 98533b90cb

View File

@ -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)