Gitolite,如何包含一个相对path的.conf文件?

我正在运行一个Gitolite服务器,我想每个仓库都有一个configuration文件。

现在我已经有了这个gitolite.conf文件:

@php_dev = userA userB @int_dev = userC @lead = userD @admin = @php_dev repo gitolite-admin RW+ = @admin repo testing RW+ = @all include "repositories/*.conf" 

然后我有gitolite-admin / conf / repositories / cms / admin / repoA.conf文件:

 repo cms/admin/repoA RW+ = @php_dev RW = @int_dev R = @lead 

当我提交时,我只有以下警告:

 remote: the following users have no pubkeys: remote: userC 

这是真的,userC还没有一个pubkey。 (我只是提到它的情况下,事情)

然后我在服务器上查看/ home / git / repositories /文件夹:

 git@FX55TMP:~/repositories$ ls -la total 16 drwx------ 4 git git 4096 2011-04-03 22:16 . drwxr-xr-x 6 git git 4096 2011-04-03 22:16 .. drwx------ 8 git git 4096 2011-04-03 23:21 gitolite-admin.git drwx------ 7 git git 4096 2011-04-03 23:21 testing.git 

他们没有自动创build的cms / admin /文件夹 – 正如文档中提到的 – 让我想我的configuration文件没有加载。

我做错了吗?

您包括“repositories / *。conf”,但是您的文件位于版本库/ cms / admin / repoA.conf中。 星号通配符(至less在gitolite中)将不匹配子目录组件。 他们在http://sitaramc.github.com/gitolite/doc/gitolite.conf.html中将通配符称为glob,而且一般来说,shell globs只会在它们使用的目录中匹配。

由于它没有find任何存储库/ *。conf(因此从来没有你的repoA.conf)它不会创build这些存储库。