@matheusbsbs / matheus-bagliano / commits / 33016c4913
Fork 0

request-pull: allow ls-remote to notice remote.$nickname.uploadpack

The location to pull from should be converted from the configured nickname to URL in the message, but ls-remote should be fed the nickname so that the command uses remote.$nickname.* variables, most notably "uploadpack". Signed-off-by: Tom Grennan <tgrennan@redback.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Tom Grennan committed Jul 28, 2009 at 18:30 UTC 33016c491367c5144b3007927cd76492ac193d16
1 file changed +1 -1
git-request-pull.sh
+1 -1
@@ -28,13 +28,13 @@ headrev=`git rev-parse --verify "$head"^0` || exit
28 merge_base=`git merge-base $baserev $headrev` ||
29 die "fatal: No commits in common between $base and $head"
30
31 -url=$(get_remote_url "$url")
31 branch=$(git ls-remote "$url" \
32 | sed -n -e "/^$headrev refs.heads./{
33 s/^.* refs.heads.//
34 p
35 q
36 }")
37 +url=$(get_remote_url "$url")
38 if [ -z "$branch" ]; then
39 echo "warn: No branch of $url is at:" >&2
40 git log --max-count=1 --pretty='tformat:warn: %h: %s' $headrev >&2