This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Jan 28 14:23, Corinna Vinschen wrote:
> 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?

Also, an strace of chmod, e.g.

  $ strace -o chmod.strace chmod 777 x

might be helpful.  Please send the file chmod.strace with your reply.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]