We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bafa663 commit 11e74aeCopy full SHA for 11e74ae
1 file changed
hooks/_common.sh
@@ -176,9 +176,9 @@ function common::is_hook_run_on_whole_repo {
176
local all_files_that_can_be_checked
177
178
if [ -z "$excluded_files" ]; then
179
- all_files_that_can_be_checked=$(git ls-files | sort | grep -E "$included_files" | tr '\n' ' ')
+ all_files_that_can_be_checked=$(git ls-files | sort | grep -E -- "$included_files" | tr '\n' ' ')
180
else
181
- all_files_that_can_be_checked=$(git ls-files | sort | grep -E "$included_files" | grep -v -E "$excluded_files" | tr '\n' ' ')
+ all_files_that_can_be_checked=$(git ls-files | sort | grep -E -- "$included_files" | grep -v -E -- "$excluded_files" | tr '\n' ' ')
182
fi
183
184
if [ "$files_to_check" == "$all_files_that_can_be_checked" ]; then
0 commit comments