From 839f71abf237d12e2521ed23c7dfdb0f66f50a3f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 15 Jun 2015 06:08:11 +0300 Subject: [PATCH] Move post-checkout hooks to hooks/post-checkout --- hooks/{post-checkout-compile => post-checkout/compyle} | 2 +- hooks/{post-checkout-touch => post-checkout/touch} | 0 hooks/{post-checkout-touch-all => post-checkout/touch-all} | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename hooks/{post-checkout-compile => post-checkout/compyle} (85%) rename hooks/{post-checkout-touch => post-checkout/touch} (100%) rename hooks/{post-checkout-touch-all => post-checkout/touch-all} (100%) 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 -- 2.39.2