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 上新建了一個 Diffusion,Diffusion中配置了一個host模式的倉庫,然后clone代碼到本地。做了一些簡單的代碼變更后push代碼出現(xiàn)了上面的報錯。
這個錯誤是因為host模式下,phabricator在創(chuàng)建代碼倉庫的時候賦予文件夾的權(quán)限缺少寫權(quán)限。進入phabricator存放代碼的地方,修改文件夾的權(quán)限,具體如下:
chmod a+w