summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6651c3f)
raw | patch | inline | side by side (parent: 6651c3f)
author | Chris Frey <cdfrey@foursquare.net> | |
Thu, 25 Jun 2009 21:21:35 +0000 (17:21 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 25 Jun 2009 21:47:49 +0000 (14:47 -0700) |
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>
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>
builtin-remote.c | patch | blob | history |
diff --git a/builtin-remote.c b/builtin-remote.c
index d436412d9b1c38084438ee17773986c970252d56..7685cfcaf08bef280576ea5f39e62dc1b92ae22c 100644 (file)
--- a/builtin-remote.c
+++ b/builtin-remote.c
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);