2013-03-04 103 views
1

在gitlab中創建項目後,我仍然無法推送它。我注意到gitolite存儲庫文件夾中沒有應該在那裏創建的項目。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 [email protected]: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 [email protected]: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 [email protected]: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 [email protected]: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 [email protected]: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 [email protected]:gitolite-admin 
8771dee..f354a61 master -master 

回答

0

看着你gitolite配置,如Issue 1769提到的,對於Gitolite V3:

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