[PATCH] Add suggestion to hard-to-understand error message
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 21, 2005, 23:49 UTC
- Message-ID
- <Pine.LNX.4.63.0512220048360.13453@wbgn013.biozentrum.uni-wuerzburg.de>
Dummies like me do not understand readily that "remote object abcdef... does not exist on local" means: "Hey, you did not pull this, did you?". So, add "(pull first?)" to that message.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
Wow, my commit messages get longer, while the patches get shorter. Odd.
send-pack.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
af2d86726fe961043d0c69c4fb727689a5903b63
diff --git a/send-pack.c b/send-pack.c index 5bc2f01..643662a 100644 --- a/send-pack.c +++ b/send-pack.c @@ -233,7 +233,7 @@ static int send_pack(int in, int out, in !ref->force) { if (!has_sha1_file(ref->old_sha1)) { error("remote '%s' object %s does not " - "exist on local", + "exist on local (pull first?)", ref->name, sha1_to_hex(ref->old_sha1)); ret = -2; continue;
-- 0.99.9.GIT