From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69881 invoked by alias); 28 Jan 2016 00:27:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 69868 invoked by uid 89); 28 Jan 2016 00:27:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=HImportance:normal, icacls, H*f:sk:56A8C67, H*MI:sk:56A8C67 X-HELO: mout.gmx.com Received: from mout.gmx.com (HELO mout.gmx.com) (74.208.4.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 28 Jan 2016 00:27:19 +0000 Received: from [100.36.139.136] by 3capp-mailcom-lxa03.server.lan (via HTTP); Thu, 28 Jan 2016 01:27:16 +0100 MIME-Version: 1.0 Message-ID: From: "Christopher Cobb" To: cygwin@cygwin.com Subject: Re: git clone fails with: error: chmod on config.lock failed: Invalid argument Content-Type: text/plain; charset=UTF-8 Date: Thu, 28 Jan 2016 06:35:00 -0000 Sensitivity: Normal In-Reply-To: <20160127145314.GE547@calimero.vinschen.de> References: <56A8C67A.6070101@cornell.edu>, <20160127145314.GE547@calimero.vinschen.de> Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-UI-Out-Filterresults: notjunk:1;V01:K0:/HnwMJZlNoQ=:ErNCuedpfQxKMRvS5G8AtW dPSvgqoWwB6eHPvBC8hFpnvSI11k6FvJ8c4vCGgBzcMqaFRP59kmXT8e+g3a18xCs/qD9HH1l ryux8yEELrwyKOMhRoaeIhV1nPGUXYAiaK9pyPyA94DGDhLqsTrG7tvB1q3OyTVlyPkXcfRIm rqaSV2KI9vjAJ6XSj4e0koL06s739CXEuZoqgbNFU2edq01EzHQo1oNfqZ4wau2CmVo7Z58q/ RjGJMhX/8CDjWtRilGoiLeq4SX44/An6xDN7MLCQuHAkgjrRbT0AjXi8i+Ez6+VXH8wS65vli Pm421Fa1K8cgFYJSyJjVHriV0UuVjBo0iCge66frGFlTOgsyTxzmVhNge+xfmip0jq2hT+KC0 jD9VxDrh7vuY929qZ92Vl/vNUj2N62qSAyne5XkApNRKy6r12Q+UYTm1kpUtI2Zn9nqFlyhEC lwJHQ1ta8A== X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00401.txt.bz2 Or maybe chmod is broken, like it is on my machine: $ touch x $ chmod 777 x chmod: changing permissions of =E2=80=98x=E2=80=99: Invalid argument > Sent: Wednesday, January 27, 2016 at 9:53 AM > From: "Corinna Vinschen" > To: cygwin@cygwin.com > Subject: Re: git clone fails with: error: chmod on config.lock failed: In= valid argument > > 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 > > >error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid = argument > > >error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid = argument > > >error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid = argument > > >error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid = argument > > >fatal: 'origin' does not appear to be a git repository > > >fatal: Could not read from remote repository. > > > > > >Please make sure you have the correct access rights > > >and the repository exists. > > >---- > > > > > >Directory `bar` exists neither before nor after the attempted cloning. > > >In the parent directory, manually creating a subdirectory works as > > >expected: > > > > > > /cygdrive/c/base> mkdir bar; ls -ld bar; rmdir bar > > > drwx------+ 1 username 123 0 Jan 27 13:13 bar > > > > > >The issue is not restricted to local cloning, the same messages are > > >printed when I attempt to clone from a remote host (from which I > > >can clone just fine from a Linux client). > > > > > >Searching the internet for "cygwin git error chmod on config.lock > > >failed: Invalid argument" gave not useful results. > > > > > >I first noticed the issue after having upgraded to Cygwin 2.4.0-1. > > >Juding from the directory creation times in `base`, > > >it looks like the last successful clone happened on 2015-07-28. > > >I do not know which version of Cygwin I used at that time, > > >I update roughly once a month. > > > > > >Today, I upgraded to 2.4.1-1, the issue persists. > > > > > >I tried downgrading git from 2.7 to 2.6 via the installer. > > >The issue persisted, so I rolled forward again, the issue persisted. > > > > > >How can I troubleshoot this further? > >=20 > > There might be a problem with the default ACL on the directory > > /cygdrive/c/base. What does 'getfacl /cygdrive/c/base' show? >=20 > 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. >=20 >=20 > Thanks, > Corinna >=20 > --=20 > Corinna Vinschen Please, send mails regarding Cygwin to > Cygwin Maintainer cygwin AT cygwin DOT com > Red Hat > -- 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