码迷,mamicode.com
首页 > 其他好文 > 详细

git在push的时候出现insufficient permission for adding an object错误

时间:2014-11-21 16:43:22      阅读:242      评论:0      收藏:0      [点我收藏+]

标签:database   failed   permission   objects   nobody   

push git库,报错。

今天有同事找我,问我怎么回事,去看的时间,发现确实是 权限问题,git库的 所有者 为 nobody,


remo@remo:/qualcomm/jenkins/r1528_ap/oe-core$ git push

Counting objects: 10, done.

Delta compression using up to 4 threads.

Compressing objects: 100% (5/5), done.

Writing objects: 100% (8/8), 676 bytes, done.

Total 8 (delta 3), reused 0 (delta 0)

error: insufficient permission for adding an object to repository database ./objects


fatal: failed to write object

error: unpack failed: unpack-objects abnormal exit

To ssh://repogitgerrit@192.168.0.198/home/repogitgerrit/repositories/9x25oecore.git

 ! [remote rejected] master -> master (n/a (unpacker error))

error: failed to push some refs to ‘ssh://repogitgerrit@192.168.0.198/home/repogitgerrit/repositories/9x25oecore.git‘

remo@remo:/qualcomm/jenkins/r1528_ap/oe-core$ ls


原因:
git库权限的问题
$ ls -la,查看git库的所有者

解决:
在git库目录下:
$sudo chown -R git:git git库(9x25oecore.git‘) 

本文出自 “MyPan's blog” 博客,请务必保留此出处http://mypan.blog.51cto.com/713912/1580650

git在push的时候出现insufficient permission for adding an object错误

标签:database   failed   permission   objects   nobody   

原文地址:http://mypan.blog.51cto.com/713912/1580650

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!