X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=hooks%2Fpost-rewrite;h=df28442064f11766915c5abe2c3a5112b2664a64;hb=11f9b3e2837ea214ee8cccf69704b3314a8ffba9;hp=02466f9c73d44757d3cfea9ab2e634c3a295a832;hpb=472be778aa9f5725f3a7757baa5c791b32182f2c;p=git-scripts.git diff --git a/hooks/post-rewrite b/hooks/post-rewrite index 02466f9..df28442 100755 --- a/hooks/post-rewrite +++ b/hooks/post-rewrite @@ -2,7 +2,7 @@ # post-rewrite hook that compiles python files to byte code -python2.7 -m compileall -q . && -python2.7 -O -m compileall -q . +python -m compileall -q -x '\.tox/.+' . && +python -O -m compileall -q -x '\.tox/.+' . exit 0