From 499171ca64bcb32b0c2360daa505f84b62032d7a Mon Sep 17 00:00:00 2001 From: Lectem Date: Sat, 13 Jun 2015 22:20:56 +0200 Subject: enforce config from hook --- hooks/pre-commit | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'hooks') diff --git a/hooks/pre-commit b/hooks/pre-commit index 44010fa1..bad84b14 100644 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -1,23 +1,24 @@ #!/bin/sh -#check the config, in case the user really wants to allow tabs... -allowtabs=$(git config hooks.allowtabs) -if [ "$allowtabs" != "true" ] && - git diff --cached | egrep '^\+.* ' -then - cat<