summaryrefslogtreecommitdiff
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2010-07-26 18:32:09 +0200
committerJunio C Hamano <gitster@pobox.com>2010-07-27 09:12:23 -0700
commitd3b9dd136ea5735c88a831b5a0f6f2e5dd623701 (patch)
tree23b9472224051d52f29713c467584247ace44d11 /builtin/fetch.c
parente8b4ac37d8ec149582527c09369720a6526984af (diff)
downloadgit-d3b9dd136ea5735c88a831b5a0f6f2e5dd623701.tar.gz
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>
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r--builtin/fetch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index 6eb1dfea09..1b67f5fda5 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -845,7 +845,8 @@ static int fetch_one(struct remote *remote, int argc, const char **argv)
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);