Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'cb/maint-fetch-refspec-wo-dst'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 6 Jul 2009 16:39:38 +0000
(09:39 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 6 Jul 2009 16:39:38 +0000
(09:39 -0700)
* cb/maint-fetch-refspec-wo-dst:
fetch: do not create ref from empty name
remote.c
patch
|
blob
|
history
raw
(from parent 1:
ea1b9b9
)
diff --git
a/remote.c
b/remote.c
index 733ba57494715e00427350af4175fe67c390ec34..c3ada2d72b9b3f7411ffe420030768e73a003923 100644
(file)
--- a/
remote.c
+++ b/
remote.c
@@
-1277,7
+1277,7
@@
struct ref *get_remote_ref(const struct ref *remote_refs, const char *name)
static struct ref *get_local_ref(const char *name)
{
- if (!name)
+ if (!name
|| name[0] == '\0'
)
return NULL;
if (!prefixcmp(name, "refs/"))