Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 33016c4

Browse files
Tom Grennangitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 54bc13c commit 33016c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-request-pull.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ headrev=`git rev-parse --verify "$head"^0` || exit
2828
merge_base=`git merge-base $baserev $headrev` ||
2929
die "fatal: No commits in common between $base and $head"
3030

31-
url=$(get_remote_url "$url")
3231
branch=$(git ls-remote "$url" \
3332
| sed -n -e "/^$headrev refs.heads./{
3433
s/^.* refs.heads.//
3534
p
3635
q
3736
}")
37+
url=$(get_remote_url "$url")
3838
if [ -z "$branch" ]; then
3939
echo "warn: No branch of $url is at:" >&2
4040
git log --max-count=1 --pretty='tformat:warn: %h: %s' $headrev >&2

0 commit comments

Comments
 (0)