Clarify help message when no remote is specified in fetch/pull.
The message is especially confusing when "git fetch" is ran from "git pull", for users not aware of "git fetch". The new message makes it clear that "fetch" means "fetch new revisions", and gives hint on the solution. We don't add a advice.* configuration option since this message doesn't appear in normal use, and shouldn't disturb advanced users. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Matthieu Moy committed
Jul 26, 2010 at 18:32 UTC
d3b9dd136ea5735c88a831b5a0f6f2e5dd623701
1 file changed
+2
-1
builtin/fetch.c
+2
-1
@@ -845,7 +845,8 @@ static int fetch_one(struct remote *remote, int argc, const char **argv)
845
int exit_code;
846
847
if (!remote)
848
- die("Where do you want to fetch from today?");
848
+ die("No remote repository specified. Please, specify either a URL or a\n"
849
+ "remote name from which new revisions should be fetched.");
850
851
transport = transport_get(remote, NULL);
852
transport_set_verbosity(transport, verbosity, progress);