Skip to content

Commit 266db5e

Browse files
committed
fix: ensure list of files is provided as space-delimited list
1 parent 4d4214f commit 266db5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/git/hooks/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ run_lint() {
143143
fi
144144
# Lint against EditorConfig:
145145
if [[ -z "${skip_editorconfig}" ]]; then
146-
make FILES="${changed_files}" lint-editorconfig-files > /dev/null >&2
146+
files=$(echo "${changed_files}" | tr '\n' ' ')
147+
make FILES="${files}" lint-editorconfig-files > /dev/null >&2
147148
if [[ "$?" -ne 0 ]]; then
148149
echo '' >&2
149150
echo 'EditorConfig lint errors.' >&2

0 commit comments

Comments
 (0)