diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-09-22 12:36:32 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-22 12:36:32 -0700 |
commit | 39149df36426ee106367c701feb5a8c8662c9f74 (patch) | |
tree | 5d082de08a1c4a6a82712777c0ffac15bb970c08 /builtin/remote.c | |
parent | Merge branch 'jk/dont-count-existing-objects-twice' (diff) | |
parent | remote: don't show success message when set-head fails (diff) | |
download | tgif-39149df36426ee106367c701feb5a8c8662c9f74.tar.xz |
Merge branch 'cs/don-t-pretend-a-failed-remote-set-head-succeeded'
"git remote set-head" that failed still said something that hints
the operation went through, which was misleading.
* cs/don-t-pretend-a-failed-remote-set-head-succeeded:
remote: don't show success message when set-head fails
Diffstat (limited to 'builtin/remote.c')
-rw-r--r-- | builtin/remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |