Skip to content

Commit 653a31c

Browse files
michal42gitster
authored andcommitted
request-pull: really really disable pager
Earlier 476cc72 (request-pull: really disable pager, 2009-06-30) tried to use the correct environment variable to disable paging from multiple calls to "git log" and friends, but there was one extra call to "git log" that was not covered by the trick. Move the setting and exporting of GIT_PAGER much earlier in the script to cover everybody. Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent d4c9856 commit 653a31c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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)