public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* git clone fails with: error: chmod on config.lock failed: Invalid argument
@ 2016-01-27 16:34 Rainer Blome
  2016-01-27 18:33 ` Ken Brown
  0 siblings, 1 reply; 19+ messages in thread
From: Rainer Blome @ 2016-01-27 16:34 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-04-21  7:46 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-27 16:34 git clone fails with: error: chmod on config.lock failed: Invalid argument Rainer Blome
2016-01-27 18:33 ` Ken Brown
2016-01-27 18:39   ` Corinna Vinschen
2016-01-28  6:35     ` Christopher Cobb
2016-01-28 14:31       ` Corinna Vinschen
2016-01-28 15:52         ` chmod failed: Invalid argument [was: git clone fails with: error: chmod on config.lock failed: Invalid argument] Corinna Vinschen
2016-01-28 16:06         ` git clone fails with: error: chmod on config.lock failed: Invalid argument Corinna Vinschen
2016-01-28 17:23           ` Aw: " Rainer Blome
2016-01-28 18:56             ` Corinna Vinschen
2016-04-19  7:22               ` git clone fails with error " Tomas Jura
2016-04-19  7:57                 ` Tomas Jura
2016-04-19  8:11                 ` Corinna Vinschen
2016-04-19 13:30                   ` Tomas Jura
2016-04-19 14:04                     ` Corinna Vinschen
2016-04-20 14:06                       ` Tomas Jura
2016-04-20 14:29                         ` Corinna Vinschen
2016-04-21  7:29                           ` Tomas Jura
2016-04-21  7:49                             ` Corinna Vinschen
2016-01-28 14:33       ` git clone fails with: error: " Andrey Repin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).