diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 144b65ef3ab8442b117fa9bfd9b1f899d2dca023..d3e0f3b9245de67aa5104392ab989bb29d1b3cf4 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -69,7 +69,7 @@ fi #----------------------------------------------------------------------------- # Builtin whitespace checks. -bad=$(git diff-index --check --cached $against --) || die "$bad" +bad=$(git diff-index --check --cached $against -- --ignore-space-at-eol) || die "$bad" # Approximate whitespace=tab-in-indent check with Git < 1.7.2. git --version | grep -q " \(1\.[0-6]\|1\.7\.[01]\)" &&