aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-04-09 20:11:52 -0400
committerJunio C Hamano <gitster@pobox.com>2008-04-10 01:02:59 -0700
commite5c49826d26e71ea18ff3010ef75edb1849df7ec (patch)
tree1247e09875aa3bc2c2961e96e670344887adbd65
parent71349732c53a4c1b64729628b04db7b3c3f7606d (diff)
downloadgit-e5c49826d26e71ea18ff3010ef75edb1849df7ec.tar.gz
git-e5c49826d26e71ea18ff3010ef75edb1849df7ec.tar.xz
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin-fetch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin-fetch.c b/builtin-fetch.c
index 139a6b10c..e4486e428 100644
--- a/builtin-fetch.c
+++ b/builtin-fetch.c
@@ -360,12 +360,10 @@ static int store_updated_refs(const char *url, struct ref *ref_map)
if (ref)
update_local_ref(ref, what, verbose, note);
- else if (verbose)
+ else
sprintf(note, "* %-*s %-*s -> FETCH_HEAD",
SUMMARY_WIDTH, *kind ? kind : "branch",
REFCOL_WIDTH, *what ? what : "HEAD");
- else
- *note = '\0';
if (*note) {
if (!shown_url) {
fprintf(stderr, "From %.*s\n",