mirror of
https://github.com/git/git.git
synced 2024-12-18 22:33:34 +08:00
Merge branch 'cb/maint-fetch-refspec-wo-dst'
* cb/maint-fetch-refspec-wo-dst: fetch: do not create ref from empty name
This commit is contained in:
commit
864cd94917
2
remote.c
2
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)
|
static struct ref *get_local_ref(const char *name)
|
||||||
{
|
{
|
||||||
if (!name)
|
if (!name || name[0] == '\0')
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!prefixcmp(name, "refs/"))
|
if (!prefixcmp(name, "refs/"))
|
||||||
|
Loading…
Reference in New Issue
Block a user