mirror of
https://github.com/git/git
synced 2024-09-13 05:14:36 +00:00
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
This commit is contained in:
commit
39149df364
|
@ -1356,7 +1356,7 @@ static int set_head(int argc, const char **argv)
|
||||||
result |= error(_("Not a valid ref: %s"), buf2.buf);
|
result |= error(_("Not a valid ref: %s"), buf2.buf);
|
||||||
else if (create_symref(buf.buf, buf2.buf, "remote set-head"))
|
else if (create_symref(buf.buf, buf2.buf, "remote set-head"))
|
||||||
result |= error(_("Could not setup %s"), buf.buf);
|
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);
|
printf("%s/HEAD set to %s\n", argv[0], head_name);
|
||||||
free(head_name);
|
free(head_name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue