aboutsummaryrefslogtreecommitdiff
path: root/cron-runner.sh
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-11-22 02:27:38 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-11-22 02:27:38 +0200
commitd42989a4641d4620976f8bd62048826aed16ba9a (patch)
tree72ef5893f9ebd26ce7feef6449759671f533076f /cron-runner.sh
parent54189a5405abe3242c96fc709e6469685cac099c (diff)
When pushing mirror changes locally, disable gitolite hooks.
When run with local push, gitolite hooks apparently lack some information available when run with SSH wrapper, and misbehave (error out, etc.) Change-Id: Ie182efbdf636e07c7a2cfd9436c04310cdfba3a3
Diffstat (limited to 'cron-runner.sh')
-rwxr-xr-xcron-runner.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/cron-runner.sh b/cron-runner.sh
index 0bf525a..acf0d27 100755
--- a/cron-runner.sh
+++ b/cron-runner.sh
@@ -4,6 +4,11 @@
# Self-kill if run for more than 2 hours
(sleep 7200; if ps $$ >/dev/null; then kill -ALRM $$; fi)&
+# When pushing locally, gitolite hooks don't work too well,
+# so disabled them.
+export GL_LIBDIR=~/gitolite/src/lib
+export GL_BYPASS_ACCESS_CHECKS=1
+
BASE_DIR=/srv/mirror
MIRROR_DIR=$BASE_DIR/gerrit-mirror/
LOG_DIR=$BASE_DIR/gerrit-mirror-logs/