Skip to content

Commit 345a380

Browse files
cdfreygitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6651c3f commit 345a380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin-remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ static int get_remote_ref_states(const char *name,
789789
read_branches();
790790

791791
if (query) {
792-
transport = transport_get(NULL, states->remote->url_nr > 0 ?
792+
transport = transport_get(states->remote, states->remote->url_nr > 0 ?
793793
states->remote->url[0] : NULL);
794794
remote_refs = transport_get_remote_refs(transport);
795795
transport_disconnect(transport);

0 commit comments

Comments
 (0)