summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-12-12 12:36:28 +0000
committerYann Herklotz <git@yannherklotz.com>2021-12-12 12:36:28 +0000
commitc56fee6dfc6201415d36deeedc5c72d314409e0e (patch)
tree9bef885ebe36cf39555f8bd0ba23d6c0e77235f3
parenta9944c91ef7f91fa2509bbda6931cae4d48b8b54 (diff)
downloadgitolite-admin-c56fee6dfc6201415d36deeedc5c72d314409e0e.tar.gz
gitolite-admin-c56fee6dfc6201415d36deeedc5c72d314409e0e.zip
Add a better config
-rw-r--r--conf/gitolite.conf5
-rwxr-xr-xlocal/hooks/repo-specific/srht-mirror2
2 files changed, 6 insertions, 1 deletions
diff --git a/conf/gitolite.conf b/conf/gitolite.conf
index f329d28..d7f5b43 100644
--- a/conf/gitolite.conf
+++ b/conf/gitolite.conf
@@ -23,6 +23,11 @@ repo CREATOR/..*
RW = WRITERS
R = READERS
+repo private/..*
+ RW+ = ymherklotz
+ owner = Yann Herklotz
+ option hook.post-update = srht-mirror
+
repo gitolite-admin
RW+ = @admin
diff --git a/local/hooks/repo-specific/srht-mirror b/local/hooks/repo-specific/srht-mirror
index 6261728..6d603fd 100755
--- a/local/hooks/repo-specific/srht-mirror
+++ b/local/hooks/repo-specific/srht-mirror
@@ -1 +1 @@
-git push --mirror git@git.sr.ht:~ymherklotz/$GL_REPO
+git push --mirror git@git.sr.ht:~ymherklotz/$(echo $GL_REPO | sed -r -e 's:(private/)?(.*):\2:')