From 65bdef4b5fee3dddae45d72601687ec03cfcb28a Mon Sep 17 00:00:00 2001 From: Glenn Willen Date: Wed, 1 Mar 2023 12:08:03 -0800 Subject: [PATCH] Use git --no-pager in ci script. When running 'git log' in a ci script, pass --no-pager to ensure that a pager (i.e. 'less') is never used. When running in CI, there is no controlling terminal, so a pager will never be used; but when running the CI scripts by hand to reproduce CI issues, the automatic invocation of a pager by 'git log' breaks the script. --- ci/lint/06_script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/lint/06_script.sh b/ci/lint/06_script.sh index e38cfe8eef..a585e9b676 100755 --- a/ci/lint/06_script.sh +++ b/ci/lint/06_script.sh @@ -24,10 +24,10 @@ test/lint/check-doc.py test/lint/lint-all.sh if [ "$CIRRUS_REPO_FULL_NAME" = "bitcoin/bitcoin" ] && [ -n "$CIRRUS_CRON" ]; then - git log --merges --before="2 days ago" -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit + git --no-pager log --merges --before="2 days ago" -1 --format='%H' > ./contrib/verify-commits/trusted-sha512-root-commit ${CI_RETRY_EXE} gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys $(