X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-push.c;h=b68c6813b8c71e0e00790eb422e57f8e219095fb;hb=d6d96f835cace1c108100cf88e216a59debcb937;hp=9f727c00f689ae23373502c7fb21b2234a1c1748;hpb=378b2607f07bd2fa0eaa8648e7dc8db636708d74;p=git.git diff --git a/builtin-push.c b/builtin-push.c index 9f727c00f..b68c6813b 100644 --- a/builtin-push.c +++ b/builtin-push.c @@ -44,15 +44,6 @@ static void set_refspecs(const char **refs, int nr) strcat(tag, refs[i]); ref = tag; } - if (!strcmp("HEAD", ref)) { - unsigned char sha1_dummy[20]; - ref = resolve_ref(ref, sha1_dummy, 1, NULL); - if (!ref) - die("HEAD cannot be resolved."); - if (prefixcmp(ref, "refs/heads/")) - die("HEAD cannot be resolved to branch."); - ref = xstrdup(ref + 11); - } add_refspec(ref); } }