summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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:')