summaryrefslogtreecommitdiff
path: root/gitolite-sync.conf.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-07-29 22:03:59 +0200
committerErich Eckner <git@eckner.net>2021-07-29 22:03:59 +0200
commit919b714d8f3fc08f9600053abb063c98ae560356 (patch)
tree050584c8be3a374f49e2f04bd056e95f53e03ade /gitolite-sync.conf.in
parentfe598d432cf8bc1a1ed1f62f8bd95739f3dd4f27 (diff)
downloadgitolite-sync-919b714d8f3fc08f9600053abb063c98ae560356.tar.xz
remove timer and service, but make scripts suitable for post-receive hook in gitoliteHEADv0.4master
Diffstat (limited to 'gitolite-sync.conf.in')
-rw-r--r--gitolite-sync.conf.in20
1 files changed, 4 insertions, 16 deletions
diff --git a/gitolite-sync.conf.in b/gitolite-sync.conf.in
index 3ba06be..0fd7de9 100644
--- a/gitolite-sync.conf.in
+++ b/gitolite-sync.conf.in
@@ -1,19 +1,7 @@
#!/bin/bash
-# this regex must match the to-be-synchronized remotes (or their url)
-remote_regex='[@.]eckner\.net:'
+# these remotes will be synced
+sync_remotes=('ecknernet')
-# these directories contain the to-be-synchronized repositories
-repository_dirs=(
- $(
- getent passwd #GITUSER# \
- | cut -d: -f6 \
- | sed 's,$,/repositories,'
- )
-)
-
-# name and path of default remote
-default_remote_name='ecknernet'
-default_remote_path_substitution='
- s#^'"${repository_dirs[0]}"'#gitolite@eckner.net:#
-'
+# these remotes will be created, if they do not yet exist
+default_remotes['ecknernet']='gitolite@git.eckner.net:'