# [PATCH] Need to set PAGER in tests

2 messages from 2005-08-11 to 2005-08-11. Participants: Pavel Roskin, Junio C Hamano.
Thread: https://gitlist.dev/t/1471

## Pavel Roskin, 2005-08-11 02:10

Subject: [PATCH] Need to set PAGER in tests
Message-ID: <1123726201.18644.10.camel@dv>
URL: https://gitlist.dev/e/1123726201.18644.10.camel%40dv

```
Hello!

"t5400-send-pack.sh --verbose" stops waiting for user input.  It happens
because "git log" uses less for output now.  To prevent this, PAGER
should be set to cat.

Signed-off-by: Pavel Roskin <proski@gnu.org>

diff --git a/t/test-lib.sh b/t/test-lib.sh
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -5,8 +5,9 @@
 
 # For repeatability, reset the environment to known value.
 LANG=C
+PAGER=cat
 TZ=UTC
-export LANG TZ
+export LANG PAGER TZ
 unset AUTHOR_DATE
 unset AUTHOR_EMAIL
 unset AUTHOR_NAME

-- 
Regards,
Pavel Roskin

```

## Junio C Hamano, 2005-08-11 05:50

Subject: Re: [PATCH] Need to set PAGER in tests
Message-ID: <7v3bphowcp.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v3bphowcp.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <1123726201.18644.10.camel@dv>

```
Pavel Roskin <proski@gnu.org> writes:

> "t5400-send-pack.sh --verbose" stops waiting for user input.  It happens
> because "git log" uses less for output now.  To prevent this, PAGER
> should be set to cat.

Good catch, thanks.

I did not notice this before, because I always work in Emacs
compilation buffer, setting PAGER to cat and EDITOR to
emacsclient.

```
