@matheusbsbs / matheus-bagliano / commits / 3000658f7c
Fork 0

"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 <name>" in "git remote update". Signed-off-by: Samuel Tardieu <sam@rfc1149.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Samuel Tardieu committed Mar 9, 2008 at 13:37 UTC 3000658f7c15c880f976aac0ade73efd3b1e9790
1 file changed +1
builtin-remote.c
+1
@@ -46,6 +46,7 @@ static int opt_parse_track(const struct option *opt, const char *arg, int not)
46 static int fetch_remote(const char *name)
47 {
48 const char *argv[] = { "fetch", name, NULL };
49 + printf("Updating %s\n", name);
50 if (run_command_v_opt(argv, RUN_GIT_CMD))
51 return error("Could not fetch %s", name);
52 return 0;