summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-12-02 16:28:17 (GMT)
committerSwift Review <review@swift.im>2012-12-04 19:18:12 (GMT)
commit7a8c17182adcb2839957aa54fa4f64524a0cd02a (patch)
treee75bceed5ca3b1cca3f469bd440cfd95e3850b11
parentd96f856fea35e8a8f6e426318a87f044223de8d8 (diff)
downloadswift-5f70623a85ebd7fdc05371989be1ca8721268a7b.zip
swift-5f70623a85ebd7fdc05371989be1ca8721268a7b.tar.bz2
Don't check tabs & copyrights of deleted files.swift-2.0rc3
Change-Id: I588af0ea8a751d8c4c11c6789e4915c65b072880
-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