Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/remote-curl-an-array-in-struct-cannot-be-null' into maint
author
Junio C Hamano
<gitster@pobox.com>
Wed, 25 Feb 2015 06:10:35 +0000
(22:10 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 25 Feb 2015 06:10:35 +0000
(22:10 -0800)
Fix a misspelled conditional that is always true.
* jk/remote-curl-an-array-in-struct-cannot-be-null:
do not check truth value of flex arrays
remote-curl.c
patch
|
blob
|
history
raw
(from parent 1:
93baadb
)
diff --git
a/remote-curl.c
b/remote-curl.c
index dd63bc27abf8ae4b9e480ba1bb88942db11a0e48..515ac9b411a211936a575628706a30ea4a2ccc3f 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);