summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d4c9856)
raw | patch | inline | side by side (parent: d4c9856)
author | Michal Marek <mmarek@suse.cz> | |
Wed, 1 Jul 2009 09:40:30 +0000 (11:40 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 1 Jul 2009 20:20:00 +0000 (13:20 -0700) |
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>
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>
git-request-pull.sh | patch | blob | history |
diff --git a/git-request-pull.sh b/git-request-pull.sh
index ab2dd104986c33b2aa3e488dafda31265effb642..5917773240dfb2e8b5f078afee22a3d9bf607ce3 100755 (executable)
--- a/git-request-pull.sh
+++ b/git-request-pull.sh
. git-sh-setup
. git-parse-remote
+GIT_PAGER=
+export GIT_PAGER
+
base=$1
url=$2
head=${3-HEAD}
}")
if [ -z "$branch" ]; then
echo "warn: No branch of $url is at:" >&2
- git log --max-count=1 --pretty='format:warn: %h: %s' $headrev >&2
+ git log --max-count=1 --pretty='tformat:warn: %h: %s' $headrev >&2
echo "warn: Are you sure you pushed $head there?" >&2
echo >&2
echo >&2
status=1
fi
-GIT_PAGER=
-export GIT_PAGER
echo "The following changes since commit $baserev:"
git shortlog --max-count=1 $baserev | sed -e 's/^\(.\)/ \1/'