delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/16/12:45:58

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
X-SBRS: None
MIME-Version: 1.0
Subject: Cygwin 1.7 beta breaks git on Windows shares
Date: Wed, 16 Dec 2009 09:45:39 -0800
Message-ID: <A89C48A7B1A0E24E84F044EB99F673ED07C10B43@WLVEXM01.corp.ad.diginsite.com>
From: "Jacobs, Todd" <Todd DOT Jacobs AT digitalinsight DOT com>
To: <cygwin AT cygwin DOT com>
X-Tablus-Inspected: yes
X-Tablus-Classifications: public
X-Tablus-Action: allow
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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
=20=20=20=20=20=20=20
However:

       $ ls -lad .git
       drwx------+ 1 todd Domain Users 0 2009-12-16 08:58 .git/
=20=20=20=20=20=20=20
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019