git push がエラーで失敗する

問題

git push すると、次のエラーが表示される。

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 ssh://user@host/repo.git
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'ssh://user@host/repo.git'
原因

リモートリポジトリーのディレクトリーにユーザーの書き込み権限が無かったため。

対処

リモートリポジトリーのディレクトリーにユーザーの書き込み権限を付加する。

$ chmod  -R  o+w  repo.git