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
Родитель 60ab26de99
Коммит 98533b90cb
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

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