3 # post-checkout hook that compiles python files to byte code
4 # if branch was changed or remove byte code files for a specific branch
10 if [ \( "$new_branch" = 1 \) ]; then
11 phd_pubkey_HEAD="`git show-ref --hash refs/heads/phd-pubkey`"
12 if [ "$new_HEAD" = "$phd_pubkey_HEAD" ]; then
15 python2.7 -m compileall -q . &&
16 python2.7 -O -m compileall -q .