From: Oleg Broytman Date: Mon, 15 Jun 2015 03:08:11 +0000 (+0300) Subject: Move post-checkout hooks to hooks/post-checkout X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=839f71abf237d12e2521ed23c7dfdb0f66f50a3f;p=git-scripts.git Move post-checkout hooks to hooks/post-checkout --- diff --git a/hooks/post-checkout-compile b/hooks/post-checkout/compyle similarity index 85% rename from hooks/post-checkout-compile rename to hooks/post-checkout/compyle index 10c729b..dce8b01 100755 --- a/hooks/post-checkout-compile +++ b/hooks/post-checkout/compyle @@ -7,7 +7,7 @@ prev_HEAD="$1" new_HEAD="$2" new_branch="$3" -if [ \( "$new_branch" = 1 \) ]; then +if [ "$new_branch" = 1 ]; then python2.7 -m compileall -q . && python2.7 -O -m compileall -q . fi diff --git a/hooks/post-checkout-touch b/hooks/post-checkout/touch similarity index 100% rename from hooks/post-checkout-touch rename to hooks/post-checkout/touch diff --git a/hooks/post-checkout-touch-all b/hooks/post-checkout/touch-all similarity index 100% rename from hooks/post-checkout-touch-all rename to hooks/post-checkout/touch-all