X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=add-pubkey%2Fpost-checkout;h=bf63ef0d2e12c3e97fad203b7e31c64cc0ffd664;hb=368b4f3c978a2ae7b6821e7a0dc3511c7b94668e;hp=ae91c71b72585c2504a7b47291b669d44912304e;hpb=4760314f775002a11be872bc8c7e9cbd55af321c;p=git-scripts.git diff --git a/add-pubkey/post-checkout b/add-pubkey/post-checkout index ae91c71..bf63ef0 100755 --- a/add-pubkey/post-checkout +++ b/add-pubkey/post-checkout @@ -8,8 +8,7 @@ new_HEAD="$2" new_branch="$3" if [ \( "$new_branch" = 1 \) ]; then - phd_pubkey_HEAD="`git show-ref --hash refs/heads/phd-pubkey`" - if [ "$new_HEAD" = "$phd_pubkey_HEAD" ]; then + if [ "$new_HEAD" = "`git rev-parse phd-pubkey`" ]; then git clean -d -f -q else python2.7 -m compileall -q . &&