diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-07-06 09:39:38 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-07-06 09:39:38 -0700 |
commit | 864cd9491772367b3ce5b0dda98f068e5bd49680 (patch) | |
tree | b4ad69fb8da9d1cfdda2aab7a35f091fe3ec3908 | |
parent | Merge branch 'sb/show-ref-parse-options' (diff) | |
parent | fetch: do not create ref from empty name (diff) | |
download | tgif-864cd9491772367b3ce5b0dda98f068e5bd49680.tar.xz |
Merge branch 'cb/maint-fetch-refspec-wo-dst'
* cb/maint-fetch-refspec-wo-dst:
fetch: do not create ref from empty name
-rw-r--r-- | remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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/")) |