diff --git a/builtin/remote.c b/builtin/remote.c index e8377994e5..90ab40a152 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -1355,7 +1355,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); }