summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 50a991e)
raw | patch | inline | side by side (parent: 50a991e)
author | Clemens Buchacher <drizzd@aon.at> | |
Wed, 17 Jun 2009 13:38:36 +0000 (15:38 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 18 Jun 2009 16:55:34 +0000 (09:55 -0700) |
Previously, the refspec "<src>:" would be expanded to
"<src>:refs/heads/". Instead, treat an empty <dst> just like refspecs
without a colon.
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
"<src>:refs/heads/". Instead, treat an empty <dst> just like refspecs
without a colon.
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c | patch | blob | history |
diff --git a/remote.c b/remote.c
index d66e2f3c93dc72a7112ce101278ae937cc914320..39583d52b9b632a67594acfb4372b6e192200b41 100644 (file)
--- a/remote.c
+++ b/remote.c
static struct ref *get_local_ref(const char *name)
{
- if (!name)
+ if (!name || name[0] == '\0')
return NULL;
if (!prefixcmp(name, "refs/"))