diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-12-02 16:28:17 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2012-12-04 19:18:12 (GMT) |
commit | 7a8c17182adcb2839957aa54fa4f64524a0cd02a (patch) | |
tree | e75bceed5ca3b1cca3f469bd440cfd95e3850b11 /BuildTools | |
parent | d96f856fea35e8a8f6e426318a87f044223de8d8 (diff) | |
download | swift-contrib-7a8c17182adcb2839957aa54fa4f64524a0cd02a.zip swift-contrib-7a8c17182adcb2839957aa54fa4f64524a0cd02a.tar.bz2 |
Don't check tabs & copyrights of deleted files.swift-2.0rc3
Change-Id: I588af0ea8a751d8c4c11c6789e4915c65b072880
Diffstat (limited to 'BuildTools')
-rwxr-xr-x | BuildTools/Git/Hooks/pre-commit | 3 |
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 |