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

[PATCH 3/3] builtin-fetch: fail when fetching refs fails

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 17, 2007, 22:50 UTC
Message-ID
<Pine.LNX.4.64.0707172350050.14781@racer.site>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 builtin-fetch.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/builtin-fetch.c b/builtin-fetch.c
index 2f24c22..f1045ac 100644
--- a/builtin-fetch.c
+++ b/builtin-fetch.c
@@ -381,7 +381,10 @@ static int do_fetch(struct transport *transport,
 		}
 	}
 
-	fetch_refs(transport, ref_map);
+	if (fetch_refs(transport, ref_map)) {
+		free_refs(ref_map);
+		return 1;
+	}
 
 	fetch_map = ref_map;
 
-- 
1.5.3.rc1.16.g9d6f-dirty
Message 1 of 1 in “builtin-fetch: fail when fetching refs fails”
  1. 3/3 builtin-fetch: fail when fetching refs failsJohannes Schindelin, Jul 17, 2007

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.