summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'BuildTools')
-rwxr-xr-xBuildTools/Git/Hooks/pre-commit3
1 files changed, 3 insertions, 0 deletions
diff --git a/BuildTools/Git/Hooks/pre-commit b/BuildTools/Git/Hooks/pre-commit
index 28bebfc..11f0c2d 100755
--- a/BuildTools/Git/Hooks/pre-commit
+++ b/BuildTools/Git/Hooks/pre-commit
@@ -5,6 +5,9 @@ IFS='
echo "Checking tabs & copyrights ..."
for file in $(git diff --cached --name-only); do
+ if [ ! -f $file ]; then
+ continue
+ fi
if ! BuildTools/CheckTabs.py $file; then
echo "ERROR: '$file' contains expanded tabs. Aborting commit."
exit -1