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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=kmyTl8Xc40RmfmHP 8YpXb01cV5bMlXLheEQqwZbQr90sXpr45tYWCqFYUiG/PoX1tLgsfQ9Vi9lpfKPc /pqvleYSv4/IBHPWLlZMly0ufogeiiP5YxWOG2oni4AsMMrBA3gYeSp/FeE2psgV f8a00F4qSyd/JNxWScBr04w3wqw= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=mwHWcfunDJY1ggUOllSXjv qd/IQ=; b=AAgDDDu8uDm/uTmSgQ5xYiJEUA36P4xBiTz9qZvPW38EHw7U/FHWAZ 7ob3kCGPM1kFnQOtrQosYGiMI3ssqrdU2eb/Y9y9pCtwYYtIzV4FihAzduJzSYss b/gRA0ABswaGQVfUn5MOVE3j48SYDgfu2CTceVhM+I8SsAHwOOgAA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-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 X-CornellRouted: This message has been Routed already. Subject: Re: git clone fails with: error: chmod on config.lock failed: Invalid argument To: cygwin AT cygwin DOT com References: From: Ken Brown Message-ID: <56A8C67A.6070101@cornell.edu> Date: Wed, 27 Jan 2016 08:30:34 -0500 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 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