How to troubleshoot git "unable to set permission" on adding project?

Posted by Brian Knoblauch on Super User See other posts from Super User or by Brian Knoblauch
Published on 2010-03-19T13:54:28Z Indexed on 2010/03/19 14:01 UTC
Read the original article Hit count: 249

Filed under:

Finally decided to move from Subversion to Git, but am having problems with my first project. Did my "git init" and am trying to do a "git add" of my project, but it's failing with:

$ git add .
error: unable to set permission to '.git/objects/6b/6018c1c76dc5ec159d5cb65bab72
fa300d52f6'
error: build.xml: failed to insert into database
error: unable to index file build.xml
fatal: adding files failed

I have full permissions to the directories in question. The only odd thing about it is that it's a drive mounted (and mapped) from a server over CIFS. No problems creating/editing files/permissions with other applications. The host is Windows Vista x64 and I'm running git under Cygwin. Server is Windows 2008.

Any other ideas on what I might be doing wrong?

© Super User or respective owner

Related posts about git