From 0ea7fe27def60fb50a5d9974f4dad34dff781f1d Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Wed, 19 Apr 2023 00:03:49 -0500 Subject: [PATCH] Exclude .tar.gz from whitespace checks --- Hooks/scripts.d/whitespace | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hooks/scripts.d/whitespace b/Hooks/scripts.d/whitespace index cc8e13c..1e9e343 100755 --- a/Hooks/scripts.d/whitespace +++ b/Hooks/scripts.d/whitespace @@ -2,7 +2,7 @@ # 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. exit 1 fi