summaryrefslogtreecommitdiffstats
path: root/git-am.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-03-02 21:44:11 +0100
committerJunio C Hamano <gitster@pobox.com>2010-03-02 21:44:11 +0100
commit52ebb06f1466a235c643acffdea9c9e484cfdec0 (patch)
treeb7bfae26f5719b8447ef176f4df4437d1e3fc4a9 /git-am.sh
parentMerge branch 'ml/encode-header-refactor' (diff)
parenttests: Fix race condition in t7006-pager (diff)
downloadgit-52ebb06f1466a235c643acffdea9c9e484cfdec0.tar.xz
git-52ebb06f1466a235c643acffdea9c9e484cfdec0.zip
Merge branch 'jn/maint-fix-pager'
* jn/maint-fix-pager: tests: Fix race condition in t7006-pager t7006-pager: if stdout is not a terminal, make a new one tests: Add tests for automatic use of pager am: Fix launching of pager git svn: Fix launching of pager git.1: Clarify the behavior of the --paginate option Make 'git var GIT_PAGER' always print the configured pager Fix 'git var' usage synopsis
Diffstat (limited to 'git-am.sh')
-rwxr-xr-xgit-am.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/git-am.sh b/git-am.sh
index ebfbee59d3..9df951a597 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -663,10 +663,7 @@ do
[eE]*) git_editor "$dotest/final-commit"
action=again ;;
[vV]*) action=again
- : ${GIT_PAGER=$(git var GIT_PAGER)}
- : ${LESS=-FRSX}
- export LESS
- $GIT_PAGER "$dotest/patch" ;;
+ git_pager "$dotest/patch" ;;
*) action=again ;;
esac
done