Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/fetch-progressive-stride'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 29 Mar 2011 21:09:08 +0000
(14:09 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 29 Mar 2011 21:09:08 +0000
(14:09 -0700)
* jc/fetch-progressive-stride:
Fix potential local deadlock during fetch-pack
1
2
builtin/fetch-pack.c
patch
|
diff1
|
diff2
|
blob
|
history
raw
|
combined
(merge:
2eee139
44d8dc5
)
diff --cc
builtin/fetch-pack.c
index 65a8727453320f68e1230f702392c5ca3bb76884,147d67dca447aa4afa1c829865af636753cacf31..85aff029b225c023f09fda635f16cc00a22ed7ca
---
1
/
builtin/fetch-pack.c
---
2
/
builtin/fetch-pack.c
+++ b/
builtin/fetch-pack.c
@@@
-219,17
-218,8
+219,18
@@@
static void send_request(int fd, struc
safe_write(fd, buf->buf, buf->len);
}
+static void insert_one_alternate_ref(const struct ref *ref, void *unused)
+{
+ rev_list_insert_ref(NULL, ref->old_sha1, 0, NULL);
+}
+
+static void insert_alternate_refs(void)
+{
+ foreach_alt_odb(refs_from_alternate_cb, insert_one_alternate_ref);
+}
+
#define INITIAL_FLUSH 16
+ #define PIPESAFE_FLUSH 32
#define LARGE_FLUSH 1024
static int next_flush(int count)