From: Chris Frey Date: Thu, 25 Jun 2009 21:21:35 GMT Subject: [PATCH] git-remote: fixed missing .uploadpack usage for show command Message-ID: <20090625212135.GA28935@foursquare.net> In-Reply-To: <7vmy7wcgge.fsf@alter.siamese.dyndns.org> For users pulling from machines with self compiled git installs, in non-PATH locations, they can set the config option remote..uploadpack to set the location of git-upload-pack. When using 'git remote show ', the remote HEAD check did not use the uploadpack configuration setting, and would stall. In builtin-remote.c, the config setting is already loaded with the call to remote_get(), so this patch passes that remote along to transport_get(). Signed-off-by: Chris Frey --- A possibly clearer description... builtin-remote.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/builtin-remote.c b/builtin-remote.c index 658d578..ec1f903 100644 --- a/builtin-remote.c +++ b/builtin-remote.c @@ -787,7 +787,7 @@ static int get_remote_ref_states(const char *name, read_branches(); if (query) { - transport = transport_get(NULL, states->remote->url_nr > 0 ? + transport = transport_get(states->remote, states->remote->url_nr > 0 ? states->remote->url[0] : NULL); remote_refs = transport_get_remote_refs(transport); transport_disconnect(transport); -- 1.6.2.5