{"thread":{"id":"9084","subject":"[PATCH 3/3] builtin-fetch: fail when fetching refs fails","startedAt":"2007-07-17T22:50:15Z","lastAt":"2007-07-17T22:50:15Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"47683","messageId":"Pine.LNX.4.64.0707172350050.14781@racer.site","threadId":"9084","inReplyTo":null,"subject":"[PATCH 3/3] builtin-fetch: fail when fetching refs fails","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-07-17T22:50:15Z","receivedAt":"2007-07-17T22:50:15Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n---\n builtin-fetch.c |    5 ++++-\n 1 files changed, 4 insertions(+), 1 deletions(-)\n\ndiff --git a/builtin-fetch.c b/builtin-fetch.c\nindex 2f24c22..f1045ac 100644\n--- a/builtin-fetch.c\n+++ b/builtin-fetch.c\n@@ -381,7 +381,10 @@ static int do_fetch(struct transport *transport,\n \t\t}\n \t}\n \n-\tfetch_refs(transport, ref_map);\n+\tif (fetch_refs(transport, ref_map)) {\n+\t\tfree_refs(ref_map);\n+\t\treturn 1;\n+\t}\n \n \tfetch_map = ref_map;\n \n-- \n1.5.3.rc1.16.g9d6f-dirty\n"}]}