From 3b493544c57c64f50b1b2af251f2942c706a001a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 21 Apr 2010 13:57:01 +0200 Subject: pkg_push: Actually respect hook-on-push option --- bin/ct | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/ct b/bin/ct index c383092..2648887 100755 --- a/bin/ct +++ b/bin/ct @@ -868,9 +868,15 @@ function pkg_push { clear_line info "Pushing $1\n" - global_hook $1 pre-update + if (( HOOK_ON_PUSH == 1 )) { + global_hook $1 pre-update + } + vcs_push $1 - global_hook $1 post-update + + if (( HOOK_ON_PUSH == 1 )) { + global_hook $1 post-update + } fi } -- cgit v1.2.3