summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ct10
1 files changed, 8 insertions, 2 deletions
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
}