gitolite3:将普通回购更改为野生回购?

gitolite3: Change a normal repo into a wild repo?

我已经通过手动输入创建了大约 20 个回购协议:

repo u1
    RW+ = u1

repo u2
    RW+ = u2
...

现在我注意到,我可以使用:

@u = u1 u2
repo CREATOR
    C = @u
    RW+ = CREATOR
    R = READERS
    RW = WRITERS

有没有简单的方法可以从上层普通回购切换到通配符回购?

(当然,现在我注意到,我应该使用 user/CREATOR/..* 之类的东西,但没有不烦扰 20 个用户的简单方法)

gitolite manual mentions:

If the repos are wildcard repos that already match some repo regex in the conf file, you need to manually create the gl-creator file, like so:

echo username > ~/repositories/path/to/repo.git/gl-creator

I haven't yet found this to be common enough to bother wrapping it in a nice interface or command.

所以你可以尝试至少测试一个 repo:

  • 您在回答中提到的通配符语法
  • 现有 repo.git 中添加 gl-creator 文件(内容为正确的用户名),您将用于该测试。 (意思是在尝试将其引用为通配符回购之前存在的回购)