X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-request-pull.sh;h=073a314c8043e0ff30afde65e012e356ff0d186f;hb=53b543ab8218cede7fb9383298c00dcef663692c;hp=95ad66630f39effead53598a650dec0ab7b90289;hpb=9d25acc49a98ca82988ad871753a45e41f3c90f5;p=git.git diff --git a/git-request-pull.sh b/git-request-pull.sh index 95ad66630..073a314c8 100755 --- a/git-request-pull.sh +++ b/git-request-pull.sh @@ -8,6 +8,7 @@ USAGE=' []' LONG_USAGE='Summarizes the changes since to the standard output, and includes in the message generated.' SUBDIRECTORY_OK='Yes' +OPTIONS_SPEC= . git-sh-setup . git-parse-remote @@ -25,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