diff options
author | Chris Frey <cdfrey@foursquare.net> | 2009-06-25 17:21:35 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-25 14:47:49 -0700 |
commit | 345a38039414366e91a32f3c01257c3afcf78e27 (patch) | |
tree | faa6a01edbe895f161f8d8183ffbea0227dcaeae | |
parent | fread does not return negative on error (diff) | |
download | tgif-345a38039414366e91a32f3c01257c3afcf78e27.tar.xz |
git-remote: fix missing .uploadpack usage for show command
For users pulling from machines with self compiled git installs,
in non-PATH locations, they can set the config option
remote.<name>.uploadpack to set the location of git-upload-pack.
When using 'git remote show <name>', the remote HEAD check
did not use the uploadpack configuration setting, and would
not use the configured program.
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 <cdfrey@foursquare.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | builtin-remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-remote.c b/builtin-remote.c index d436412d9b..7685cfcaf0 100644 --- a/builtin-remote.c +++ b/builtin-remote.c @@ -789,7 +789,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); |