From: Tom Grennan <tgrennan@redback.com>
To: git@vger.kernel.org, gitster@pobox.com
Subject: [PATCH] Make "git request-pull" use the configured remote.REMOTE.uploadpack
Date: Mon, 27 Jul 2009 14:02:43 -0700 [thread overview]
Message-ID: <1248728563-23906-1-git-send-email-tgrennan@redback.com> (raw)
git-request-pull.sh should use git-parse-remote:get_uploadpack() to
load a configured remote.REMOTE.uploadpack like "git remote show" and
"git fetch". This allows one to specify the path of git-upload-pack on
the remote side.
Signed-off-by: Tom Grennan <tgrennan@redback.com>
---
git-request-pull.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/git-request-pull.sh b/git-request-pull.sh
index a2cf5b8..612e94d 100755
--- a/git-request-pull.sh
+++ b/git-request-pull.sh
@@ -25,8 +25,9 @@ headrev=`git rev-parse --verify "$head"^0` || exit
merge_base=`git merge-base $baserev $headrev` ||
die "fatal: No commits in common between $base and $head"
+upload_pack=$(get_uploadpack "$url")
url=$(get_remote_url "$url")
-branch=$(git ls-remote "$url" \
+branch=$(git ls-remote --upload-pack="$upload_pack" "$url" \
| sed -n -e "/^$headrev refs.heads./{
s/^.* refs.heads.//
p
--
1.6.2.1.dirty
next reply other threads:[~2009-07-27 21:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-27 21:02 Tom Grennan [this message]
2009-07-29 0:13 ` [PATCH] Make "git request-pull" use the configured remote.REMOTE.uploadpack Santi Béjar
2009-07-29 1:30 ` Tom Grennan
2009-07-29 5:05 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1248728563-23906-1-git-send-email-tgrennan@redback.com \
--to=tgrennan@redback.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).