delorie.com/archives/browse.cgi | search |
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:reply-to:subject:to:references:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=Y1qdm91NBzfzLbTV | |
OLQzFGzXGKt7m5ZjjSipzuPfgdg2488/Y9oeKXec/6u0/pCetjrblXjxxAZ13g2A | |
d8Qwh+xpsx9B+78lW2qPIAJwLmj/55iCK0hTOK8v/voGHenE0vB9KmFdVQCnlJua | |
6rj0tbBZCV6KLk6zxXB9qjtZIc0= | |
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:reply-to:subject:to:references:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=RVBqA4rkzwTRdwnnPU6BVo | |
c5GLY=; b=IJTQ+mqxTFYCd3KwQaU2krcdDMtR7PRWLlY7nwm7dy4vkHxrERfO7K | |
QKDEb+lnknQAvhhkbN96YKynETOvfAV8jqmUwQ4owY9wjdeOD/YyHVgBhzA3ckdU | |
sKKYUmqwRr/jvmlvXjCPrPq4oUxEfNg9Yj2FQ/jgbrKjLvZX1zGNY= | |
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-Spam-SWARE-Status: | No, score=0.3 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=installed, brian, Brian, discretion |
X-HELO: | smtp-out-so.shaw.ca |
Reply-To: | Brian DOT Inglis AT SystematicSw DOT ab DOT ca |
Subject: | Re: Cygwin Git with Windows paths |
To: | cygwin AT cygwin DOT com |
References: | <5bf10195 DOT 1c69fb81 DOT 27494 DOT eed4 AT mx DOT google DOT com> <CAOYw7duJhns_6s4Le34y7zAtfL7o9zwupG0qrb+X=4hcvxn2Xw AT mail DOT gmail DOT com> |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Openpgp: | preference=signencrypt |
Message-ID: | <b77e74f8-0776-44c2-50fa-1fb95ad55364@SystematicSw.ab.ca> |
Date: | Sun, 18 Nov 2018 09:49:17 -0700 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 |
MIME-Version: | 1.0 |
In-Reply-To: | <CAOYw7duJhns_6s4Le34y7zAtfL7o9zwupG0qrb+X=4hcvxn2Xw@mail.gmail.com> |
X-IsSubscribed: | yes |
On 2018-11-18 01:35, Ray Donnelly wrote: > On Sun, Nov 18, 2018, 6:07 AM Steven Penny <svnpenn AT gmail DOT com wrote: >> Cygwin Git can clone with Unix form paths: >> $ git clone git://github.com/benhoyt/goawk /tmp/goawk >> Cloning into '/tmp/goawk'... >> remote: Enumerating objects: 330, done. >> However it fails with Windows form: >> $ git clone git://github.com/benhoyt/goawk 'C:\cygwin64\tmp\goawk' >> Cloning into 'C:\cygwin64\tmp\goawk'... >> fatal: Invalid path '/home/Steven/C:\cygwin64\tmp\goawk': No such file or >> directory Use cygpath: $ git clone git://github.com/benhoyt/goawk `cygpath 'C:\cygwin64\tmp\goawk'` >> and mixed form: >> $ git clone git://github.com/benhoyt/goawk C:/cygwin64/tmp/goawk $ git clone git://github.com/benhoyt/goawk $(cygpath C:/cygwin64/tmp/goawk) >> fatal: Invalid path '/home/Steven/C:/cygwin64': No such file or directory >> Note that other Cygwin programs work fine with these forms: >> $ ls 'C:\cygwin64' >> bin Cygwin.ico dev home sbin usr >> Cygwin.bat Cygwin-Terminal.ico etc lib tmp var If Windows paths work, that's convenient; if Windows paths don't work, use cygpath, as it is often required, that's why it's available. >> This causes problems for any non-Cygwin tools that might call Git: >> http://github.com/golang/go/issues/23155 > This is very much the point of msys2. Also Git for Windows (MinGW based) which tries to provide a more compatible experience without msys2 DLLs; and which can also be installed under msys2. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |