]> git.phdru.name Git - git-scripts.git/commitdiff
Move post-checkout hooks to hooks/post-checkout
authorOleg Broytman <phd@phdru.name>
Mon, 15 Jun 2015 03:08:11 +0000 (06:08 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 15 Jun 2015 03:08:11 +0000 (06:08 +0300)
hooks/post-checkout/compyle [moved from hooks/post-checkout-compile with 85% similarity]
hooks/post-checkout/touch [moved from hooks/post-checkout-touch with 100% similarity]
hooks/post-checkout/touch-all [moved from hooks/post-checkout-touch-all with 100% similarity]

similarity index 85%
rename from hooks/post-checkout-compile
rename to hooks/post-checkout/compyle
index 10c729b47c891e7b2bc0443b1e1f709d9b83393b..dce8b0114b3cc200219f6ab63e63848a61cd901b 100755 (executable)
@@ -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