From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66574 invoked by alias); 27 Jan 2016 13:30:47 -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 66482 invoked by uid 89); 27 Jan 2016 13:30:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=rmdir, chmod, repos, persisted X-HELO: limerock03.mail.cornell.edu Received: from limerock03.mail.cornell.edu (HELO limerock03.mail.cornell.edu) (128.84.13.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 Jan 2016 13:30:40 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id u0RDUcfr024247 for ; Wed, 27 Jan 2016 08:30:38 -0500 Received: from [10.13.22.4] ([198.74.255.70]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id u0RDUb9U025572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Wed, 27 Jan 2016 08:30:38 -0500 Subject: Re: git clone fails with: error: chmod on config.lock failed: Invalid argument To: cygwin@cygwin.com References: From: Ken Brown Message-ID: <56A8C67A.6070101@cornell.edu> Date: Wed, 27 Jan 2016 18:33:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00389.txt.bz2 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? There might be a problem with the default ACL on the directory /cygdrive/c/base. What does 'getfacl /cygdrive/c/base' show? Ken -- 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