diff options
author | Yann Herklotz <git@yannherklotz.com> | 2021-12-12 12:36:28 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2021-12-12 12:36:28 +0000 |
commit | c56fee6dfc6201415d36deeedc5c72d314409e0e (patch) | |
tree | 9bef885ebe36cf39555f8bd0ba23d6c0e77235f3 | |
parent | a9944c91ef7f91fa2509bbda6931cae4d48b8b54 (diff) | |
download | gitolite-admin-c56fee6dfc6201415d36deeedc5c72d314409e0e.tar.gz gitolite-admin-c56fee6dfc6201415d36deeedc5c72d314409e0e.zip |
Add a better config
-rw-r--r-- | conf/gitolite.conf | 5 | ||||
-rwxr-xr-x | local/hooks/repo-specific/srht-mirror | 2 |
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:') |