summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8b4ac3)
raw | patch | inline | side by side (parent: e8b4ac3)
author | Matthieu Moy <Matthieu.Moy@imag.fr> | |
Mon, 26 Jul 2010 16:32:09 +0000 (18:32 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 27 Jul 2010 16:12:23 +0000 (09:12 -0700) |
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>
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>
builtin/fetch.c | patch | blob | history |
diff --git a/builtin/fetch.c b/builtin/fetch.c
index 6eb1dfea092e2873c5910bf4389d3b071786d8b0..1b67f5fda55896635e91852657259b47e722c889 100644 (file)
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
int exit_code;
if (!remote)
- die("Where do you want to fetch from today?");
+ die("No remote repository specified. Please, specify either a URL or a\n"
+ "remote name from which new revisions should be fetched.");
transport = transport_get(remote, NULL);
transport_set_verbosity(transport, verbosity, progress);