Skip to content

Commit a95cb6f

Browse files
sigprofJunio C Hamano
authored andcommitted
[PATCH] fetch.c: Do not build object ref lists
The fetch code does not need object ref lists; by disabling them we can save some time and memory. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent ff8489c commit a95cb6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fetch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ int pull(char *target)
206206
int fd = -1;
207207

208208
save_commit_buffer = 0;
209+
track_object_refs = 0;
209210
if (write_ref && current_ref) {
210211
fd = lock_ref_sha1(write_ref, current_ref);
211212
if (fd < 0)

0 commit comments

Comments
 (0)