if [ "$new_HEAD" = "`git rev-parse phd-pubkey`" ]; then
git clean -d -f -q
else
- python -m compileall -q -x '\.tox/.+' . &&
- python -O -m compileall -q -x '\.tox/.+' .
+ python -m compileall -q -x '\.tox/' . &&
+ python -O -m compileall -q -x '\.tox/' .
fi
fi
new_branch="$3"
if [ "$new_branch" = 1 ]; then
- python -m compileall -q -x '\.tox/.+' . &&
- python -O -m compileall -q -x '\.tox/.+' .
+ python -m compileall -q -x '\.tox/' . &&
+ python -O -m compileall -q -x '\.tox/' .
fi
exit 0
# post-checkout hook that compiles python files to byte code
-python -m compileall -q -x '\.tox/.+' . &&
-python -O -m compileall -q -x '\.tox/.+' .
+python -m compileall -q -x '\.tox/' . &&
+python -O -m compileall -q -x '\.tox/' .
exit 0
# post-merge hook that compiles python files to byte code
-python -m compileall -q -x '\.tox/.+' . &&
-python -O -m compileall -q -x '\.tox/.+' .
+python -m compileall -q -x '\.tox/' . &&
+python -O -m compileall -q -x '\.tox/' .
exit 0
# post-rewrite hook that compiles python files to byte code
-python -m compileall -q -x '\.tox/.+' . &&
-python -O -m compileall -q -x '\.tox/.+' .
+python -m compileall -q -x '\.tox/' . &&
+python -O -m compileall -q -x '\.tox/' .
exit 0