0

Distinct from this question because that question addresses a shared git remote, whereas my issue is with a privately held one. I'm also not exactly a regular user, so the answer that seems to work for people was just plain mystifying to me. When I attempt to execute

git push foo master

I get the following result:

Counting objects: 18, done.
Compressing objects: 100% (18/18), done.
Writing objects: 100% (18/18) 14.71 KiB, done.
Total 18 (delta 5), 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

I followed these instructions and this achieved nothing. I also don't understand what's being said in the checked answer here. I've never had this issue before today. I made sure that the git repository I'm remoting to was created by the normal server user rather than the root, and that user has super-user permissions; it's evident to me that most of what's being suggested is well beyond my limited knowledge, and I don't want to ruin anything by trying something I don't understand, so an answer which explains in detail what various commands do would be appreciated.

Community
  • 1
  • 1
user242007
  • 278
  • 3
  • 12

1 Answers1

0

I've seen this error around here before:

remote: error: insufficient permission for adding an object to repository database ./objects
remote: fatal: failed to write object

An indication of this happening is because of a restriction of the operational system's permissions system.

If I remember correctly, one has to change file permissions by using 'chmod'

Perhaps this link can help: Git push over SSH on Windows won't work. It seems related.

Community
  • 1
  • 1
Joey Dorrani
  • 371
  • 1
  • 1