Browse code

Allow personal branches on user created repos

Robert Cranston authored on 23/01/2021 15:48:21
Showing 3 changed files

... ...
@@ -4,7 +4,8 @@ An [Ansible][] [role][] for deploying [gitolite][] on [Debian][] >=9.
4 4
 
5 5
 Installs [gitolite][], creates a [dedicated user][] to run it (defaults to
6 6
 `git`), prepares for [administering gitolite directly on the server][], and
7
-allows [user created repos][] with [multiple `OWNERS`][].
7
+allows [user created repos][] with [multiple `OWNERS`][] and `user/USER/*`
8
+[personal branches][] for `USERS`.
8 9
 
9 10
 [`ansible-role-gitolite`]: https://git.rcrnstn.net/rcrnstn/ansible-role-gitolite
10 11
 [Ansible]: https://docs.ansible.com/ansible
... ...
@@ -15,6 +16,7 @@ allows [user created repos][] with [multiple `OWNERS`][].
15 16
 [administering gitolite directly on the server]: https://gitolite.com/gitolite/odds-and-ends#administering-gitolite-directly-on-the-server
16 17
 [user created repos]: https://gitolite.com/gitolite/odds-and-ends#giving-users-their-own-repos
17 18
 [multiple `OWNERS`]: https://gitolite.com/gitolite/wild#specifying-owners
19
+[personal branches]: https://gitolite.com/gitolite/user#personal-branches
18 20
 
19 21
 ## Try out
20 22
 
... ...
@@ -48,6 +48,7 @@
48 48
         READERS                     =>  1,
49 49
         WRITERS                     =>  1,
50 50
         OWNERS                      =>  1,
51
+        USERS                       =>  1,
51 52
     },
52 53
 
53 54
     # enable caching (currently only Redis).  PLEASE RTFM BEFORE USING!!!
... ...
@@ -68,5 +68,6 @@
68 68
               C = @all
69 69
               RW+ = CREATOR
70 70
               RW+ = OWNERS
71
+              RW+ user/USER/ = USERS
71 72
               RW = WRITERS
72 73
               R = READERS