gitolite-config with user-name in branch pattern possible?

60 Views Asked by At

I want to configure something like

@developer  = user1 user2
repo test
    C   ^dev/$user- = @developer
    RW+ ^dev/$user- = @developer

So that each user in @developer has complete control over all corresponding branches under dev/ with the user-name in it.

Is there a way to make something like that happen?

1

There are 1 best solutions below

0
Elias Holzmann On BEST ANSWER

Yes, this is possible:

@developer = user1 user2
repo test
    RW+ dev/USER/ = @developer

(There might be some syntax errors in that snippet, I did not test it.)

See https://gitolite.com/gitolite/user.html#personal-branches for details.