diff options
Diffstat (limited to 'hooks/pre-commit.hook')
-rwxr-xr-x | hooks/pre-commit.hook | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/pre-commit.hook b/hooks/pre-commit.hook index 607c991..aef1ce1 100755 --- a/hooks/pre-commit.hook +++ b/hooks/pre-commit.hook @@ -46,7 +46,7 @@ INDENT_PARAMETERS="--braces-on-if-line \ --leave-preprocessor-space" echo "--Checking style--" -for file in `git-diff-index --cached --name-only HEAD --diff-filter=ACMR| grep "\.c$"` ; do +for file in `git diff-index --cached --name-only HEAD --diff-filter=ACMR| grep "\.c$"` ; do # nf is the temporary checkout. This makes sure we check against the # revision in the index (and not the checked out version). nf=`git checkout-index --temp ${file} | cut -f 1` |