haocheng@Mac testpha$[master] git push origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 216 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: error: insufficient permission for adding an object to repository database objects
remote: fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To http://phabricator-server/diffusion/23/testpha.git
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'http://phabricator-server/diffusion/23/testpha.git'
在 phabricator 上新建了一個(gè) Diffusion,Diffusion中配置了一個(gè)host模式的倉庫腊满,然后clone代碼到本地免姿。做了一些簡單的代碼變更后push代碼出現(xiàn)了上面的報(bào)錯(cuò)岖是。
這個(gè)錯(cuò)誤是因?yàn)閔ost模式下行您,phabricator在創(chuàng)建代碼倉庫的時(shí)候賦予文件夾的權(quán)限缺少寫權(quán)限。進(jìn)入phabricator存放代碼的地方汛蝙,修改文件夾的權(quán)限烈涮,具體如下:
chmod a+w