Exclude .tar.gz from whitespace checks
This commit is contained in:
parent
8435ff442b
commit
0ea7fe27de
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Sourced from https://github.com/git/git/blob/master/templates/hooks--pre-commit.sample
|
# Sourced from https://github.com/git/git/blob/master/templates/hooks--pre-commit.sample
|
||||||
|
|
||||||
if git ls-files | xargs --delimiter='\n' grep -irlE '\s\+$'; then
|
if git ls-files | grep -v .tar.gz | xargs --delimiter='\n' grep -irlE '\s\+$'; then
|
||||||
echo The above lines have trailing whitespace. Run "sed -i 's/\s\+$//'" on the affected files.
|
echo The above lines have trailing whitespace. Run "sed -i 's/\s\+$//'" on the affected files.
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user