2

当我尝试推送存储库 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

您的帮助将不胜感激

谢谢

4

1 回答 1

0

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

然后,按照这篇博文

ssh to server
cd repository.git

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

git repo-config core.sharedRepository true
于 2013-09-02T08:00:01.437 回答