From 7a8c17182adcb2839957aa54fa4f64524a0cd02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sun, 2 Dec 2012 17:28:17 +0100 Subject: Don't check tabs & copyrights of deleted files. Change-Id: I588af0ea8a751d8c4c11c6789e4915c65b072880 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 -- cgit v0.10.2-6-g49f6