summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-04-21 13:57:01 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-04-21 13:57:01 +0200
commit3b493544c57c64f50b1b2af251f2942c706a001a (patch)
tree78244c005e95925feb8ebd8ddd96457e3fb3c317
parente30566152034665fd1ae84ae65e6b426f1fac0af (diff)
pkg_push: Actually respect hook-on-push option
-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
}