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:
parent
60ab26de99
commit
98533b90cb
1
fetch.c
1
fetch.c
@ -207,6 +207,7 @@ int pull(char *target)
|
|||||||
unsigned char sha1[20];
|
unsigned char sha1[20];
|
||||||
int fd = -1;
|
int fd = -1;
|
||||||
|
|
||||||
|
save_commit_buffer = 0;
|
||||||
if (write_ref && current_ref) {
|
if (write_ref && current_ref) {
|
||||||
fd = lock_ref_sha1(write_ref, current_ref);
|
fd = lock_ref_sha1(write_ref, current_ref);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user