From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: git@vger.kernel.org, Daniel Barkalow <barkalow@iabervon.org>
Subject: [PATCH 3/3] builtin-fetch: fail when fetching refs fails
Date: Tue, 17 Jul 2007 23:50:15 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.64.0707172350050.14781@racer.site> (raw)
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
reply other threads:[~2007-07-17 22:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0707172350050.14781@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=barkalow@iabervon.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).