From: Daniel Barkalow <barkalow@iabervon.org>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Junio C Hamano <junkio@cox.net>, git@vger.kernel.org
Subject: Re: [PATCH 2/2] Clean up connection correctly if object fetch wasn't done
Date: Mon, 4 Feb 2008 16:06:41 -0500 (EST) [thread overview]
Message-ID: <alpine.LNX.1.00.0802041602020.13593@iabervon.org> (raw)
In-Reply-To: <alpine.LSU.1.00.0802042023160.8543@racer.site>
On Mon, 4 Feb 2008, Johannes Schindelin wrote:
> Hi,
>
> On Mon, 4 Feb 2008, Daniel Barkalow wrote:
>
> > Further optimization allowed the fetch_objs call to be skipped if it
> > isn't necessary. However, this leaves the connection in need of cleaning
> > up to avoid getting an error message from the remote end when ssh is
> > used. Fix this.
>
> I _think_ something similar is necessary for ls-remote, too (at least it
> showed the same symptoms today, but I have not had time to investigate
> yet).
Yup, exactly the same change to builtin-ls-remote that builtin-fetch
needed.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
diff --git a/builtin-ls-remote.c b/builtin-ls-remote.c
index 6dd31d1..0237549 100644
--- a/builtin-ls-remote.c
+++ b/builtin-ls-remote.c
@@ -94,6 +94,7 @@ int cmd_ls_remote(int argc, const char **argv, const
char *prefix)
transport_set_option(transport, TRANS_OPT_UPLOADPACK,
uploadpack);
ref = transport_get_remote_refs(transport);
+ transport_disconnect(transport);
if (!ref)
return 1;
next prev parent reply other threads:[~2008-02-04 21:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-04 18:26 [PATCH 2/2] Clean up connection correctly if object fetch wasn't done Daniel Barkalow
2008-02-04 20:23 ` Johannes Schindelin
2008-02-04 21:06 ` Daniel Barkalow [this message]
2008-02-04 21:21 ` Johannes Schindelin
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=alpine.LNX.1.00.0802041602020.13593@iabervon.org \
--to=barkalow@iabervon.org \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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