Code

git-request-pull: replace call to deprecated peek-remote
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Tue, 8 Jul 2008 23:32:15 +0000 (00:32 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 Jul 2008 23:08:27 +0000 (16:08 -0700)
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-request-pull.sh

index 068f5e0fc7308db601141bc3e70475ec2145ef67..073a314c8043e0ff30afde65e012e356ff0d186f 100755 (executable)
@@ -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