Nguyễn Thái Ngọc Duy wrote:

> --- a/builtin/branch.c
> +++ b/builtin/branch.c
> @@ -852,14 +852,14 @@ int cmd_branch(int argc, const char **argv, const char 
> *prefix)
>               const char *branch_name;
>               struct strbuf branch_ref = STRBUF_INIT;
>  
> -             if (detached)
> -                     die("Cannot give description to detached HEAD");
> -             if (!argc)
> +             if (!argc) {
> +                     if (detached)
> +                             die("Cannot give description to detached HEAD");

Good catch.  Shouldn't this bugfix be a separate patch, so it can also
be included in maint?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to