From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68883 invoked by alias); 27 Jan 2016 14:53:18 -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 68874 invoked by uid 89); 27 Jan 2016 14:53:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-94.7 required=5.0 tests=BAYES_40,KAM_LAZY_DOMAIN_SECURITY,KHOP_DYNAMIC,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=H*R:D*cygwin.com, H*f:sk:56A8C67, H*MI:sk:56A8C67, H*i:sk:56A8C67 X-HELO: calimero.vinschen.de Received: from ipbcc0d020.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 Jan 2016 14:53:16 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 6C712A80452; Wed, 27 Jan 2016 15:53:14 +0100 (CET) Date: Wed, 27 Jan 2016 18:39:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: git clone fails with: error: chmod on config.lock failed: Invalid argument Message-ID: <20160127145314.GE547@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <56A8C67A.6070101@cornell.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sm4nu43k4a2Rpi4c" Content-Disposition: inline In-Reply-To: <56A8C67A.6070101@cornell.edu> User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2016-01/txt/msg00390.txt.bz2 --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2781 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 ar= gument > >error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid ar= gument > >error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid ar= gument > >error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid ar= gument > >error: chmod on /cygdrive/c/base/bar/.git/config.lock failed: Invalid ar= gument > >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? 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. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --sm4nu43k4a2Rpi4c Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWqNnaAAoJEPU2Bp2uRE+gF0sP/0Fo758kb5cJtKAD/nTsfqzG kyZePhoOs/urZJ/D6DXsfQu6rbPMpSpnFjEQHzv5f5Z9fh0pTrVQr/j1YB7WNFGq g/KBpTix0iKJoRSeXXUrZKO7jI3JTRzM70q8HgOtSNyh5ZbhAJq2AKMYeK8TGPMI mwaOZ3zBbfozFJfDqaoqjURiYaZ5GD1YCsk6VfA09osVk63BeBqEOJdogNrWQ278 OOFS/hcmQF3ElVrU0k1pLJkhUufxM78tjBu5HMTdOQhzLFbQAAw02PCforK9ZuTG VPKH5wYJQhtNWSazkerNoUE0TgGksw+5qRk38JKaPkrvKR7PN+6NeIN+YFR/e8D+ zDc9PIPMTGuvICUpVRlHRfyRVfvK/pPIcxaXa8oxv7iBXcA4B8qbzVccC2763HK9 Z+c6Dv7j1lC1+fn+n6rs+x0u5nNp0cJq+LKVVZWYjW2wboPsSyTDcweCUyQxRJKr jm4PQl//UGXz0CyMpiES91Y4oEDn9GdUeRENWMs6VPluevZEFqELBBz7cR0Iugl1 4rUf/1uvVSQpD98X2MD0mO8R8tZ4vtUVSmpPVrKAq+79cM0vjB9RlxjmZJiBx+GR 6B9sxbp7dy49T0eCUbk411LT5R9v4NkYeluaririQxP9UvSYswOrmhI3cMt8HPxA Yxna92UBWIyVuhVY6W9i =4DEZ -----END PGP SIGNATURE----- --sm4nu43k4a2Rpi4c--