@matheusbsbs / matheus-bagliano / commits / 345a380394
Fork 0

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>

Chris Frey committed Jun 25, 2009 at 17:21 UTC 345a38039414366e91a32f3c01257c3afcf78e27
1 file changed +1 -1
builtin-remote.c
+1 -1
@@ -789,7 +789,7 @@ static int get_remote_ref_states(const char *name,
789 read_branches();
790
791 if (query) {
792 - transport = transport_get(NULL, states->remote->url_nr > 0 ?
792 + transport = transport_get(states->remote, states->remote->url_nr > 0 ?
793 states->remote->url[0] : NULL);
794 remote_refs = transport_get_remote_refs(transport);
795 transport_disconnect(transport);