From c56fee6dfc6201415d36deeedc5c72d314409e0e Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 12 Dec 2021 12:36:28 +0000 Subject: Add a better config --- conf/gitolite.conf | 5 +++++ local/hooks/repo-specific/srht-mirror | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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:') -- cgit