git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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
Next: Junio C Hamano
Message 1 of 7 in “Add suggestion to hard-to-understand error message”
  1. Add suggestion to hard-to-understand error messageJohannes Schindelin, Dec 21, 2005
  2. Junio C HamanoDec 22, 2005
  3. Andreas EricssonDec 22, 2005
  4. Junio C HamanoDec 22, 2005
  5. send-pack: reword non-fast-forward error message.Junio C Hamano, Dec 22, 2005
  6. Johannes SchindelinDec 22, 2005
  7. Andreas EricssonDec 23, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.