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.
2 parents 5aff3fc + b1fcd8c commit eb97492Copy full SHA for eb97492
pre-commit
@@ -57,7 +57,7 @@ SAVEIFS=$IFS
57
IFS=$(echo -en "\n\b")
58
59
if [ $CHECK_ALL ]; then
60
- files_to_check=$(find $git_root)
+ files_to_check=$(find $git_root -path $git_root/.git -prune -o -print)
61
else
62
files_to_check=$(git diff --cached --name-only --diff-filter=ACM)
63
fi
0 commit comments