delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/01/27/19:27:39

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:message-id:from:to:subject
:content-type:date:in-reply-to:references
:content-transfer-encoding; q=dns; s=default; b=N/Iqgb6mWi01AeCf
pJmr0Kq1J3QrhWE25SYLKRdiLdBDUfwaT8ue0NTR5567AwZJyGW295zgeeIoCDCW
8FrYOJ1reKhmjaPTAe3Ybk5LXXst1gQKXk/KGSc8hXrfJVvbM+FfGpEog5mWZrGa
i+EOUTD5QPHqp7ENnsnk26pTB6k=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:message-id:from:to:subject
:content-type:date:in-reply-to:references
:content-transfer-encoding; s=default; bh=Z8PWp/VAQg0haVSvhY9Peo
g+fck=; b=VhNubmgUsMalG+S8eseuEYZNlzUurjVAj6+hPF9o5k7RGhYIQx7nP+
AjR9e36E1UkFcJ6ZvNf7Exosm3xt2KNcfvpiZloXfS73PMc2CPQkQJuFZQ/ayNPX
ubCRIPdh/V1Qq0sDcra3ucCrBZbPKx2hnPlB1zytukcFn4Y3NPprQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
MIME-Version: 1.0
Message-ID: <trinity-55056902-bdcc-4525-897a-716505b2f75b-1453940836750@3capp-mailcom-lxa03>
From: "Christopher Cobb" <ccobb AT email DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: git clone fails with: error: chmod on config.lock failed: Invalid argument
Date: Thu, 28 Jan 2016 01:27:16 +0100
Sensitivity: Normal
In-Reply-To: <20160127145314.GE547@calimero.vinschen.de>
References: <trinity-3a438ac3-41ea-4364-8a55-e9750829ee24-1453898493961 AT 3capp-gmx-bs63> <56A8C67A DOT 6070101 AT cornell DOT edu>, <20160127145314 DOT GE547 AT calimero DOT vinschen DOT de>
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-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u0S0RZis006315

Or maybe chmod is broken, like it is on my machine:

$ touch x
$ chmod 777 x
chmod: changing permissions of ‘x’: Invalid argument

> Sent: Wednesday, January 27, 2016 at 9:53 AM
> From: "Corinna Vinschen" <corinna-cygwin AT cygwin DOT com>
> To: cygwin AT cygwin DOT com
> Subject: Re: git clone fails with: error: chmod on config.lock failed: Invalid 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?
> > 
> > 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
> 
> -- 
> 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019