chiark / gitweb /
githooks: do not run syntax checks on files being deleted
authorHans-Christoph Steiner <hans@eds.org>
Wed, 15 Jun 2016 11:32:14 +0000 (13:32 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 15 Jun 2016 12:59:56 +0000 (14:59 +0200)
hooks/pre-commit

index 0f083d00f3f397d6b50d47a86fc8829a479465f6..724a832d46a91c2c54d688fc436443d7d684028f 100755 (executable)
@@ -23,6 +23,7 @@ else
     RB_FILES=
 
     for f in $files; do
+        test -e $f || continue
         case $f in
             *.py)
                 PY_FILES+=" $f"