am: Fix launching of pager
[gitweb.git] / git-am.sh
index 3c08d53161faa72744ab64a1391d85cf9243f006..b11af03e0b47f248304adfe4317949da92196388 100755 (executable)
--- 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