Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
transport: do not list refs if possible
[gitweb.git]
/
fetch-pack.c
diff --git
a/fetch-pack.c
b/fetch-pack.c
index 75047a4b2a491e805f7c500dc804e78a8538bfa2..15652b47762d131d22814ac122a7e216eda8164c 100644
(file)
--- a/
fetch-pack.c
+++ b/
fetch-pack.c
@@
-1598,7
+1598,7
@@
struct ref *fetch_pack(struct fetch_pack_args *args,
if (nr_sought)
nr_sought = remove_duplicates_in_refs(sought, nr_sought);
- if (!ref) {
+ if (
version != protocol_v2 &&
!ref) {
packet_flush(fd[1]);
die(_("no matching remote head"));
}