gpt4 book ai didi

gitweb 和 gitolite 无法添加新的 repo

转载 作者:太空狗 更新时间:2023-10-29 13:56:39 24 4
gpt4 key购买 nike

我先安装了 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提及:

Now go to your old clone, and push it:

$ 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)

Aaha! I forgot to set GIT_CONFIG_KEYS (new name for GL_GITCONFIG_KEYS) in the new rc file so fix that:

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

确保你的 .gitolite.rc 确实包含:

GIT_CONFIG_KEYS             =>  '.*',

(在这个 GitLab issue 中也提到了,尽管它不是问题的直接根源)


I got another issue which is my projects.list file does not get updated automatically when I added a new repository to gitolite-admin conf.
For gitweb, I had to manually edited that file. Did you know what could possibly cause that?

interfacing with external tools”页面提到:

The list of gitweb-readable repos is written to a file whose name is given by the rc file variable GITWEB_PROJECTS_LIST.
The default value of this variable, if it is not specified or empty, is $HOME/projects.list.

确保你的.gitolite.rc:

GITWEB_PROJECTS_LIST        => '/path/to/projects.list',

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com