automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] branch master updated: tests: disable git log pager us


From: Mike Frysinger
Subject: [automake-commit] branch master updated: tests: disable git log pager usage
Date: Fri, 13 Jan 2023 20:34:34 -0500

This is an automated email from the git hooks/post-receive script.

vapier pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=9067b181acaf3ba111b821709ef4a97413e62cd2

The following commit(s) were added to refs/heads/master by this push:
     new 9067b181a tests: disable git log pager usage
9067b181a is described below

commit 9067b181acaf3ba111b821709ef4a97413e62cd2
Author: Mike Frysinger <vapier@gentoo.org>
AuthorDate: Fri Jan 13 00:09:06 2023 -0500

    tests: disable git log pager usage
    
    When running this code locally, the git log call can trigger a pager
    depending on the local settings, which in turn forces the test to be
    interactive.  Run git with --no-pager to force disable it.
    
    * t/get-sysconf.sh: Run git with --no-pager.
---
 t/get-sysconf.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/get-sysconf.sh b/t/get-sysconf.sh
index 11aa48bde..016e60491 100644
--- a/t/get-sysconf.sh
+++ b/t/get-sysconf.sh
@@ -25,7 +25,7 @@
 st=0
 if test -d "$am_top_srcdir"/.git; then
   # We are running from a git checkout.
-  (cd "$am_top_srcdir" && git log -1) || st=1
+  (cd "$am_top_srcdir" && git --no-pager log -1) || st=1
 elif test -f "$am_top_srcdir"/ChangeLog; then
   # We are probably running from a distribution tarball.
   awk '



reply via email to

[Prev in Thread] Current Thread [Next in Thread]