1

在 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
4

1 回答 1

0

查看Gitolite V3的 gitolite 配置,如Issue 1769中所述:

我的.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。

于 2013-03-04T08:56:25.833 回答