我先安装了 gitolite,然后添加了一些用户和一些 repos,一切都很好。然后我添加了 gitweb,并且可以通过 apache 实例查看 repos(只有 gitweb,没有 gitdaemon)。现在的问题是我不能再添加新的存储库了。每次我推送 gitolite-admin conf 文件的更改时,日志中总是显示 2 行

remote: FATAL: git config 'gitweb.description' not allowed
remote: check GIT_CONFIG_KEYS in the rc file

尽管有这 2 行烦人的行,但 conf 文件确实每次都会更改。我试图停止 apache 实例,但仍然没有运气:-(

我用谷歌搜索,找不到任何类似的匹配来讨论这个问题。任何人都可以帮忙吗?非常感谢!

最佳答案

Gitolite g2-g3 migration page 提到:


$ cd old.ga
$ gitolite push -f
    ...usual git progress output deleted...
remote: FATAL: git config foo.bar not allowed
remote: check GIT_CONFIG_KEYS in the rc file
To /home/git/repositories/gitolite-admin.git
 + 7eb8163...1474770 master -> master (forced update)


$ vim ~/.gitolite.rc
(edit and set it to `.*` for now)

确保您的 .gitolite.rc 确实包含:
GIT_CONFIG_KEYS             =>  '.*',

(此 GitLab issue 中也提到了这一点,即使它不是问题的直接根本原因)



interfacing with external tools ”页面提到:



确保您的 .gitolite.rc 中有:
GITWEB_PROJECTS_LIST        => '/path/to/projects.list',

关于gitweb 和 gitolite 无法添加新的 repo,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13311258/

10-15 04:08