Skip to content

Commit 3eb1e8e

Browse files
committed
Merge branch 'maint'
* maint: request-pull: really really disable pager
2 parents 8715227 + 653a31c commit 3eb1e8e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

git-request-pull.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ OPTIONS_SPEC=
1212
. git-sh-setup
1313
. git-parse-remote
1414

15+
GIT_PAGER=
16+
export GIT_PAGER
17+
1518
base=$1
1619
url=$2
1720
head=${3-HEAD}
@@ -34,16 +37,14 @@ branch=$(git ls-remote "$url" \
3437
}")
3538
if [ -z "$branch" ]; then
3639
echo "warn: No branch of $url is at:" >&2
37-
git log --max-count=1 --pretty='format:warn: %h: %s' $headrev >&2
40+
git log --max-count=1 --pretty='tformat:warn: %h: %s' $headrev >&2
3841
echo "warn: Are you sure you pushed $head there?" >&2
3942
echo >&2
4043
echo >&2
4144
branch=..BRANCH.NOT.VERIFIED..
4245
status=1
4346
fi
4447

45-
GIT_PAGER=
46-
export GIT_PAGER
4748
echo "The following changes since commit $baserev:"
4849
git shortlog --max-count=1 $baserev | sed -e 's/^\(.\)/ \1/'
4950

0 commit comments

Comments
 (0)