git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add suggestion to hard-to-understand error message
@ 2005-12-21 23:49 Johannes Schindelin
  2005-12-22  1:15 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Johannes Schindelin @ 2005-12-21 23:49 UTC (permalink / raw)
  To: git, junkio


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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-12-23 12:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-21 23:49 [PATCH] Add suggestion to hard-to-understand error message Johannes Schindelin
2005-12-22  1:15 ` Junio C Hamano
2005-12-22 10:03   ` Andreas Ericsson
2005-12-22 19:27     ` Junio C Hamano
2005-12-22 20:41       ` [PATCH] send-pack: reword non-fast-forward " Junio C Hamano
2005-12-22 20:53         ` Johannes Schindelin
2005-12-23 12:13         ` Andreas Ericsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).