delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/01/27/07:41:57

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; q=dns; s=default; b=puZuNARFYTeC6FWgJMGEWekI
53l2N5KVhb9iUUCbVH/uN6rKdsyRV6S797lGmLL0kbVYAQrQPGj73ouFztG3ZJtt
AtZE6T+wivazTuvy99pU/3IPPBbhHcJdJ+9V21BgwZS6+BH5iYOA84zJrBcB87O1
cxfEk9sbMr7uL614fBk=
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; s=default; bh=2QyvQOeP/78IFiBJ6raTE9OUpUs=; b=
xd/LXxPS4KzpbtCbEbxAIfD0JD+7kKT1vC/PDSjfGodxz0HwpNQnC5UMLyfuzWSC
Bq6IV3DB3mXYAKemSgY7SIALvl6CV08IxH3KSE9sQ9pUQrT4hnaF0lDMkjvt0iPt
oLnhiV/J0CByHZQJCOZAHlC6Kblm5vs36DkLdGh1PBc=
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=1.3 required=5.0 tests=BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,XPRIO autolearn=no version=3.3.2 spammy=HImportance:normal, rmdir, repos, chmod
X-HELO: mout.gmx.net
MIME-Version: 1.0
Message-ID: <trinity-3a438ac3-41ea-4364-8a55-e9750829ee24-1453898493961@3capp-gmx-bs63>
From: "Rainer Blome" <rainer DOT blome AT gmx DOT de>
To: cygwin AT cygwin DOT com
Subject: git clone fails with: error: chmod on config.lock failed: Invalid argument
Date: Wed, 27 Jan 2016 13:41:34 +0100
Sensitivity: Normal
X-UI-Out-Filterresults: notjunk:1;V01:K0:sh4kIKr0fh0=:L87L8pcD0/lul5Mzs2n3Sl JpNmA77vWcVeaNP9sD9HNub3+Ng0IoXiIVWPBD51jEaRWtpjrelCzcRh6+KdDhRF/tM1dWLC6 icVNOEk0lqtxWIYVo2JM9gkc3l4Y4+5J98UThHShEnK7EBiOO/X0m7AdImcUNtUoS4+8BwW5m JlrXkmq60lPBS7zHWmwYtbu1cKF48ltgFCuzptKSTYZZ8Ev3RNOdkkPstaa+MdgeFLrO8/sa0 s+oxRHOLuXjluWwZ0bslY7JGp6fBeYUOCd3HuFjZOxNjhobyM7yPrC9VvxD8VXhGKM1q7w1p2 wM5b7MXGpbuZjixLoEVSPuClOA71bQkCp/i6MvIntKLzisA9OUKMpF8EBRMJZBbXM6isITPpN Afu62ksM1OedQYlhFgrwyXbTD7UEwDvXWuRe/7d4Oj8pogmx7SA3CXkJ1BL2JKqG9fP8OL1b2 NvJWwKdvLw==

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?

Rainer

--
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