summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpre-commit.d/20warn-problem-files2
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-commit.d/20warn-problem-files b/pre-commit.d/20warn-problem-files
index 3e9e476..e1bbd84 100755
--- a/pre-commit.d/20warn-problem-files
+++ b/pre-commit.d/20warn-problem-files
@@ -2,7 +2,7 @@
set -e
exclude_internal () {
- grep -v '/\(.git\|.hg\|.bzr\|_darcs\)/'
+ egrep -v '(^|/)(.git|.hg|.bzr|_darcs)/'
}
if [ "$VCS" = hg ] || [ "$VCS" = bzr ] || [ "$VCS" = darcs ]; then