Skip to content

Commit

Permalink
Merge branch 'cb/maint-fetch-refspec-wo-dst' into maint
Browse files Browse the repository at this point in the history
* cb/maint-fetch-refspec-wo-dst:
  fetch: do not create ref from empty name
  • Loading branch information
gitster committed Jul 8, 2009
2 parents b13493b + 3eb9699 commit 49902bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remote.c
Expand Up @@ -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/"))
Expand Down

0 comments on commit 49902bd

Please sign in to comment.