Skip to content

Commit 4b88773

Browse files
authored
Do not pipe Git output into a pager. (#17442)
1 parent e5bebce commit 4b88773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.buildkite/scripts/common/check-files-changed.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ changed_files=$(git diff --name-only $previous_commit)
1919
if [[ -n "$changed_files" ]] && [[ -z "$(echo "$changed_files" | grep -vE "$1")" ]]; then
2020
echo "All files compared to the previous commit [$previous_commit] match the specified regex: [$1]"
2121
echo "Files changed:"
22-
git diff --name-only HEAD^
22+
git --no-pager diff --name-only HEAD^
2323
exit 0
2424
else
2525
exit 1

0 commit comments

Comments
 (0)