From: Samuel Tardieu Date: Sun, 9 Mar 2008 12:37:55 +0000 (+0100) Subject: "remote update": print remote name being fetched from X-Git-Tag: v1.5.5-rc0~24^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3000658f7c15c880f976aac0ade73efd3b1e9790;p=git.git "remote update": print remote name being fetched from When the other end has dangling symref, "git fetch" issues an error message but that is not grave enough to cause the fetch process to fail. As the result, the user will see something like this: $ git remote update error: refs/heads/2.0-uobjects points nowhere! "remote update" used to report which remote it is fetching from, like this: $ git remote update Updating core Updating matthieu error: refs/heads/2.0-uobjects points nowhere! Updating origin This reinstates the message "Updating " in "git remote update". Signed-off-by: Samuel Tardieu Signed-off-by: Junio C Hamano --- diff --git a/builtin-remote.c b/builtin-remote.c index 637b90425..24e692953 100644 --- a/builtin-remote.c +++ b/builtin-remote.c @@ -46,6 +46,7 @@ static int opt_parse_track(const struct option *opt, const char *arg, int not) static int fetch_remote(const char *name) { const char *argv[] = { "fetch", name, NULL }; + printf("Updating %s\n", name); if (run_command_v_opt(argv, RUN_GIT_CMD)) return error("Could not fetch %s", name); return 0;