Browse Source

git-request-pull: replace call to deprecated peek-remote

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Ramsay Jones 17 years ago committed by Junio C Hamano
parent
commit
74982056fa
  1. 2
      git-request-pull.sh

2
git-request-pull.sh

@ -26,7 +26,7 @@ merge_base=`git merge-base $baserev $headrev` || @@ -26,7 +26,7 @@ merge_base=`git merge-base $baserev $headrev` ||
die "fatal: No commits in common between $base and $head"

url=$(get_remote_url "$url")
branch=$(git peek-remote "$url" \
branch=$(git ls-remote "$url" \
| sed -n -e "/^$headrev refs.heads./{
s/^.* refs.heads.//
p

Loading…
Cancel
Save