Skip to content

Commit eb97492

Browse files
authored
Merge pull request drwahl#93 from garethhumphriesworldpay/patch-1
Skip files under .git when checking all files
2 parents 5aff3fc + b1fcd8c commit eb97492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ SAVEIFS=$IFS
5757
IFS=$(echo -en "\n\b")
5858

5959
if [ $CHECK_ALL ]; then
60-
files_to_check=$(find $git_root)
60+
files_to_check=$(find $git_root -path $git_root/.git -prune -o -print)
6161
else
6262
files_to_check=$(git diff --cached --name-only --diff-filter=ACM)
6363
fi

0 commit comments

Comments
 (0)