ContribRepositories

Requirement

At the time of writing, only GNUtoo and Putti are able to do that, as they are the only people in the admin group in gitolite (this can be changed in conf/gitolite in the gitolite repository).

Procedure

First you need to clone the gitolite repository:

git clone ssh://git@git.replicant.us/gitolite-admin

Then you need to modify this repository to for adding a new user. In this tutorial we'll add the newuser user.

Here's an example of modification to do that:

diff --git a/conf/gitolite.conf b/conf/gitolite.conf
--- a/conf/gitolite.conf
+++ b/conf/gitolite.conf
[...] 
+repo contrib/newuser/..*
+    C       =   newuser
+    RW+     =   newuser
+    R       =   @admins daemon
+
[...]
diff --git a/keydir/userkey2/newuser.pub b/keydir/userkey2/newuser.pub
new file mode 100644
index 0000000..f8d32aa
--- /dev/null
+++ b/keydir/userkey2/newuser.pub
@@ -0,0 +1 @@
+ssh-rsa [...]

Then it would be a good idea to explain a bit why we need to do that (for instance newuser wants to work on Replicant 15, or newuser wants to add support for 6G devices) in the commit message.

Once the change is pushed, I'm unsure if the newuser directory also needs to be created or not.

If it does, the following commands could take care of it:

su -l git
mkdir -p /var/lib/gitolite3/repositories/contrib/newuser

The new user should then be able to create new repositories just using git push at the right address.

Caveats