From: Junio C Hamano <gitster@pobox.com>
To: "Christian Schlack via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, Christian Schlack <christian@backhub.co>
Subject: Re: [PATCH] remote: in case of error don't show success message.
Date: Thu, 17 Sep 2020 11:39:19 -0700 [thread overview]
Message-ID: <xmqqpn6kqmco.fsf@gitster.c.googlers.com> (raw)
In-Reply-To: <pull.848.git.git.1600356459092.gitgitgadget@gmail.com> (Christian Schlack via GitGitGadget's message of "Thu, 17 Sep 2020 15:27:38 +0000")
"Christian Schlack via GitGitGadget" <gitgitgadget@gmail.com>
writes:
> diff --git a/builtin/remote.c b/builtin/remote.c
> index 542f56e387..64b4b551eb 100644
> --- a/builtin/remote.c
> +++ b/builtin/remote.c
> @@ -1356,7 +1356,7 @@ static int set_head(int argc, const char **argv)
> result |= error(_("Not a valid ref: %s"), buf2.buf);
> else if (create_symref(buf.buf, buf2.buf, "remote set-head"))
> result |= error(_("Could not setup %s"), buf.buf);
> - if (opt_a)
> + else if (opt_a)
> printf("%s/HEAD set to %s\n", argv[0], head_name);
> free(head_name);
> }
>
Quite straight-forward and looks obviously good.
Thanks, will queue.
prev parent reply other threads:[~2020-09-17 18:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-17 15:27 [PATCH] remote: in case of error don't show success message Christian Schlack via GitGitGadget
2020-09-17 18:39 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqpn6kqmco.fsf@gitster.c.googlers.com \
--to=gitster@pobox.com \
--cc=christian@backhub.co \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).