X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=add-pubkey%2Fpost-checkout;h=19ac074d0a08236c8a7b030b80b49f48b8b06882;hb=9a73fd795453b874efe7da629d6954ba05774503;hp=bf63ef0d2e12c3e97fad203b7e31c64cc0ffd664;hpb=4df283c93cbe5b8b99d683f0a56885d29b544a20;p=git-scripts.git diff --git a/add-pubkey/post-checkout b/add-pubkey/post-checkout index bf63ef0..19ac074 100755 --- a/add-pubkey/post-checkout +++ b/add-pubkey/post-checkout @@ -1,7 +1,7 @@ #!/bin/sh # post-checkout hook that compiles python files to byte code -# if branch was changed or remove byte code files for a specific branch +# if branch was changed or removes byte code files for a specific branch prev_HEAD="$1" new_HEAD="$2" @@ -11,8 +11,8 @@ if [ \( "$new_branch" = 1 \) ]; then if [ "$new_HEAD" = "`git rev-parse phd-pubkey`" ]; then git clean -d -f -q else - python2.7 -m compileall -q . && - python2.7 -O -m compileall -q . + python -m compileall -q -x '\.tox/.+' . && + python -O -m compileall -q -x '\.tox/.+' . fi fi