Skip to content

Commit e5c4982

Browse files
peffgitster
authored andcommitted
git-fetch: always show status of non-tracking-ref fetches
Previously, a fetch like: git fetch git://some/url would show no ref status output (just the object downloading status, if there was any), leading to some confusion. With this patch, we now show the usual ref table, with remote refs going into FETCH_HEAD. Previously this output was shown only if "-v"erbose was specified. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7134973 commit e5c4982

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

builtin-fetch.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,12 +360,10 @@ static int store_updated_refs(const char *url, struct ref *ref_map)
360360

361361
if (ref)
362362
update_local_ref(ref, what, verbose, note);
363-
else if (verbose)
363+
else
364364
sprintf(note, "* %-*s %-*s -> FETCH_HEAD",
365365
SUMMARY_WIDTH, *kind ? kind : "branch",
366366
REFCOL_WIDTH, *what ? what : "HEAD");
367-
else
368-
*note = '\0';
369367
if (*note) {
370368
if (!shown_url) {
371369
fprintf(stderr, "From %.*s\n",

0 commit comments

Comments
 (0)