www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/16/14:43:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B293867.7040303@bopp.net>
Date: Wed, 16 Dec 2009 13:43:35 -0600
From: Jeremy Bopp <jeremy AT bopp DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 1.7 beta breaks git on Windows shares
References: <A89C48A7B1A0E24E84F044EB99F673ED07C10B43 AT WLVEXM01 DOT corp DOT ad DOT diginsite DOT com>
In-Reply-To: <A89C48A7B1A0E24E84F044EB99F673ED07C10B43@WLVEXM01.corp.ad.diginsite.com>
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

On 12/16/2009 11:45 AM, Jacobs, Todd wrote:
> I'm running the 1.7 beta, and am finding that git repositories on
> Windows shares now exhibit permissions problems. For example:

What do you mean by a "Windows share"?  Are you talking about a
directory on your local machine or a network share provided by a remote
system?

> 
>        $ 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?

Try checking the ACLs on the .git directory using the Windows file
explorer and make sure that you have the Change Permissions right.  If
your user is listed as having Full Control, then you have the right, but
you'll have to use the advanced view for your user's permission entry to
check for certain if you do not have Full Control.

Just as a guess, are you using a Windows-native build of git as well?
I'm not sure if it makes a difference or not, but it could be a good
data point to consider.

-Jeremy

--
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