git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Make "git request-pull" use the configured remote.REMOTE.uploadpack

From
Tom Grennan <tgrennan@redback.com>
Date
Jul 27, 2009, 21:02 UTC
Message-ID
<1248728563-23906-1-git-send-email-tgrennan@redback.com>

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: Santi Béjar
Message 1 of 4 in “Make "git request-pull" use the configured remote.REMOTE.uploadpack”
  1. Make "git request-pull" use the configured remote.REMOTE.uploadpackTom Grennan, Jul 27, 2009
  2. Santi BéjarJul 29, 2009
  3. Tom GrennanJul 29, 2009
  4. Junio C HamanoJul 29, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.