Skip to content

Commit 4704e8e

Browse files
avargitster
authored andcommitted
CI: don't have "git grep" invoke a pager in tree content check
Fix the omission of not adding "-P" (a.k.a. "--no-pager") to the "git" invocation that spaws "git grep", added in 0e7696c (ci: disallow directional formatting, 2021-11-04). This didn't matter for the GitHub CI, but does when running the check locally. A subsequent commit will start invoking it via a new check from the top-level Makefile, and without this we'd visibly spawn a pager when doing so. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3ff02d1 commit 4704e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/check-directional-formatting.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
# U+2066..U+2069: LRI, RLI, FSI and PDI
2424
regex='(\u202a|\u202b|\u202c|\u202d|\u202e|\u2066|\u2067|\u2068|\u2069)'
2525

26-
! LC_CTYPE=C git grep -El "$(LC_CTYPE=C.UTF-8 printf "$regex")" \
26+
! LC_CTYPE=C git -P grep -El "$(LC_CTYPE=C.UTF-8 printf "$regex")" \
2727
-- ':(exclude,attr:binary)' ':(exclude)*.po'

0 commit comments

Comments
 (0)