在gitlab中创建项目后,我仍然无法推动它。我注意到在gitolite存储库文件夹中没有项目创建它应该在那里。
cat /home/gitlab/gitlab/log/githost.log
如下所示,最后一次是我在gitlab中创建项目的时候。
March 04, 2013 15:37 -ERROR -Gitolite error - remote: FATAL:
git config 'core.sharedRepository' not allowed remote: check
GIT_CONFIG_KEYS in the rc file To git@42.62.26.7:gitolite-admin
1c67fcf..25792ba master -master
March 04, 2013 15:50 -ERROR -Gitolite error - remote: FATAL:
git config 'core.sharedRepository' not allowed remote: check
GIT_CONFIG_KEYS in the rc file To git@42.62.26.7:gitolite-admin
19952c7..f8ccebc master -master
March 04, 2013 15:57 -ERROR -Gitolite error - remote: FATAL:
git config 'core.sharedRepository' not allowed remote: check
GIT_CONFIG_KEYS in the rc file To git@42.62.26.7:gitolite-admin
359de47..3683bc1 master -master
March 04, 2013 16:21 -ERROR -Gitolite error - remote: FATAL:
git config 'core.sharedRepository' not allowed remote: check
GIT_CONFIG_KEYS in the rc file To git@42.62.26.7:gitolite-admin
479836c..37a2aa9 master -master
March 04, 2013 16:23 -ERROR -Gitolite error - remote: FATAL:
git config 'core.sharedRepository' not allowed remote: check
GIT_CONFIG_KEYS in the rc file To git@42.62.26.7:gitolite-admin
37a2aa9..8771dee master -master
March 04, 2013 16:32 -ERROR -Gitolite error - remote: FATAL:
git config 'core.sharedRepository' not allowed remote: check
GIT_CONFIG_KEYS in the rc file To git@42.62.26.7:gitolite-admin
8771dee..f354a61 master -master
答案 0 :(得分:0)
如Issue 1769中所述,对于Gitolite V3,请查看您的gitolite配置:
我的
.gitolite.rc
看起来像这样
%RC = (
# if you're using mirroring, you need a hostname. This is *one* simple
# word, not a full domain name. See documentation if in doubt
# HOSTNAME => 'darkstar',
UMASK => 0007,
'.*',
将其更改为
%RC = (
# if you're using mirroring, you need a hostname. This is *one* simple
# word, not a full domain name. See documentation if in doubt
# HOSTNAME => 'darkstar',
UMASK => 0007,
GIT_CONFIG_KEYS => '.*',
请注意,下一个GitLab版本(5.0)将不再使用Gitolite。