git clone fails with: error: chmod on config.lock failed: Invalid argument

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Jan 28 14:31:00 GMT 2016


Please don't top-post.  Thank you.

On Jan 28 01:27, Christopher Cobb wrote:
> > From: "Corinna Vinschen"
> > On Jan 27 08:30, Ken Brown wrote:
> > > On 1/27/2016 7:41 AM, Rainer Blome wrote:
> > > >Hi!
> > > >
> > > >When I use "git clone foo bar" on a Linux host, it works as expected.
> > > >
> > > >  git clone foo bar
> > > >  Cloning into 'bar'...
> > > >  done.
> > > >
> > > >When I use the same command on my Cygwin 64 installation, this used
> > > >to work, but does not work any more.  I can fetch and otherwise use
> > > >Git in existing repos all right (have not noticed anything else
> > > >amiss), but the clone command fails like this:
> > > >
> > > >----
> > > >cd /cygdrive/c/base
> > > >git clone foo bar
> > > >Cloning into 'bar'...
> > > >error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid argument
> > > >[...]
> > > 
> > > There might be a problem with the default ACL on the directory
> > > /cygdrive/c/base.  What does 'getfacl /cygdrive/c/base' show?
> > 
> > Also, what does the native windows icacls command print for that
> > directory?  The setup of the ACL may give us a hint why git apparently
> > fails to create the bar subdir.
> > 
> Or maybe chmod is broken, like it is on my machine:
> 
> $ touch x
> $ chmod 777 x
> chmod: changing permissions of ‘x’: Invalid argument

Can you please send the icacls output of the current directory and
the icacls out for the file x?


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160128/8c5e9dc0/attachment.sig>


More information about the Cygwin mailing list