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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>, Daniel Barkalow <barkalow@...>
Date: Tuesday, July 17, 2007 - 6:50 pm

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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/3] builtin-fetch: fail when fetching refs fails, Johannes Schindelin, (Tue Jul 17, 6:50 pm)