Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
daemon: deglobalize hostname information
[gitweb.git]
/
remote-curl.c
diff --git
a/remote-curl.c
b/remote-curl.c
index 04989e5d7ef56b5d320465a584c76355b871560a..deb4bfe684512ea48fbc0d2663270e44722db26b 100644
(file)
--- a/
remote-curl.c
+++ b/
remote-curl.c
@@
-760,7
+760,7
@@
static int fetch_git(struct discovery *heads,
for (i = 0; i < nr_heads; i++) {
struct ref *ref = to_fetch[i];
- if (!
ref->name || !
*ref->name)
+ if (!*ref->name)
die("cannot fetch by sha1 over smart http");
packet_buf_write(&preamble, "%s %s\n",
sha1_to_hex(ref->old_sha1), ref->name);