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>
Michal Marek committed
Jul 1, 2009 at 11:40 UTC
653a31c16a0b83c11f00eb94ef49857ce8f2e37b
1 file changed
+4
-3
git-request-pull.sh
+4
-3
@@ -12,6 +12,9 @@ OPTIONS_SPEC=
12
. git-sh-setup
13
. git-parse-remote
14
15
+GIT_PAGER=
16
+export GIT_PAGER
17
+
18
base=$1
19
url=$2
20
head=${3-HEAD}
@@ -34,7 +37,7 @@ branch=$(git ls-remote "$url" \
37
}")
38
if [ -z "$branch" ]; then
39
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
41
echo "warn: Are you sure you pushed $head there?" >&2
42
echo >&2
43
echo >&2
@@ -42,8 +45,6 @@ if [ -z "$branch" ]; then
45
status=1
46
fi
47
45
-GIT_PAGER=
46
-export GIT_PAGER
48
echo "The following changes since commit $baserev:"
49
git shortlog --max-count=1 $baserev | sed -e 's/^\(.\)/ \1/'
50