Cygwin 1.7 beta breaks git on Windows shares

Jacobs, Todd Todd.Jacobs@digitalinsight.com
Wed Dec 16 17:45:00 GMT 2009


I'm running the 1.7 beta, and am finding that git repositories on
Windows shares now exhibit permissions problems. For example:

       $ chmod g+w .git
       chmod: changing permissions of `.git': Permission denied
       
However:

       $ ls -lad .git
       drwx------+ 1 todd Domain Users 0 2009-12-16 08:58 .git/
       
so I should be able to change the permissions. Is it something to do
with being on a Windows share? If so, why would it stop working because
of the 1.7 beta? What's changed in terms of how 1.7 handles security
permissions?

This pretty much breaks all of git:

       $ mkdir testgit; cd testgit; echo foo > foo; git add foo
       error: unable to set permission to
'.git/objects/25/7cc5642cb1a054f08cc83f2d943e56fd3ebe99'
       error: foo: failed to insert into database
       error: unable to index file foo
       fatal: adding files failed

but doesn't seem to be a problem with non-git files on the same share:

       $ touch permtest; ls -l permtest; chmod 777 permtest; ls -l
permtest
       -rw-r--r--+ 1 todd Domain Users 0 2009-12-16 09:35 permtest
       -rwxrwxrwx+ 1 todd Domain Users 0 2009-12-16 09:35 permtest*

What can I do to fix this?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list