Merge branch 'cb/maint-fetch-refspec-wo-dst' into maint

* cb/maint-fetch-refspec-wo-dst:
  fetch: do not create ref from empty name
This commit is contained in:
Junio C Hamano 2009-07-08 09:52:25 -07:00
commit 49902bd856

View File

@ -1254,7 +1254,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/"))