gitolite-admin的Gitolite推送错误

时间:2013-09-02 07:15:55

标签: gitolite

当我尝试推送存储库gitolite-admin时,它会给我以下错误

Counting objects: 7, done.  
Delta compression using up to 2 threads.  
Compressing objects: 100% (3/3), done.  
Writing objects: 100% (4/4), 360 bytes | 0 bytes/s, done.  
Total 4 (delta 1), reused 0 (delta 0)
error: unpack failed: unpack-objects a  bnormal exit  
To http://server.name/git/gitolite-admin.git  
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'http://server.name/git/gitolite-admin.git'

以下是我的apache日志

[Mon Sep 02 08:39:50 2013] [error] [client ] error: insufficient permission for adding an object to repository database ./objects
[Mon Sep 02 08:39:50 2013] [error] [client ] fatal: failed to write object

您的帮助将不胜感激

由于

1 个答案:

答案 0 :(得分:0)

您需要确保用户访问您的Apache后面的gitolite存储库。

然后,按照blog post

ssh to server
cd repository.git

sudo chmod -R g+ws *
sudo chgrp -R mygroup *

git repo-config core.sharedRepository true