delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/11/18/01:07:38

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:message-id:date:from:to:content-type:subject;
q=dns; s=default; b=B+yDvuzIqvx21kIyX39pQ8YohUhDt4ZMyOHReK5OxM5
bt9gP0FW4PHMelC1ZPInp2JnVE6oJPNvza46DkXLzkKDVKh0c+EewHfHGib3h+Sg
YGPiHDJFCbyosxdSXzIH+65jKO76lTvzfDx/KuGKj5/9fjvXSjWudU/ES1nf4HPw
=
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:message-id:date:from:to:content-type:subject;
s=default; bh=YfCuk0bg8Si2sTKCJJZYlQeusQU=; b=MqIy9OL3ZtOyv5aid
PRlNFEnL2gPQZ1Y5myKDA4U5EmCwXt+60xaF9tZCo8+cJ2XG57diy/aU8iynDjpb
oDAWibEwntJkUvja0CgpDHBWSubVZVtcgOYsLtF6fl2tRz0iBgzGmDpuXg5cTlcn
DsQBIf6MNalY2yQahTwyfPRadc=
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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*MI:1c69fb81, cloning, H*M:1c69fb81, H*r:e24f
X-HELO: mail-ot1-f49.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:user-agent:subject; bh=uFzOTE+YMrRG2WdgR1lz9UGYBEpqC1dsm8Pf224RU1g=; b=XYq7PCmQveExfNcgULkhF357NrOtePoX7lpGa8Fb+qh3E9pyeZ5wIW5WMDQNYJTQQ6 VSbjWkqZaXRoWWV9pNsOC+yvTTqjBs7Vo60VlyzZtczpqJ2hOlXzTiwlJySn9iz8JQQc aPK+GfiCjQKA0tZb14skgY3E5rID33Dyc9CD6f8+ucaKn3MtVy8DTVyfpWXWc9FBnqtj AJ+DULJ0ILETQpqoGjpl47w/ePSzqk0Q3Q0T+/EegCPgAQkW2a7MGzn3kyxegpKOoBx/ 9pMlxxnelqO64JPTDZrEuyOT7yGirdZ48PbLwHTRmzv24cJsbxEBEWYfDqAAZasLXKBF Ypzg==
Message-ID: <5bf10195.1c69fb81.27494.eed4@mx.google.com>
Date: Sat, 17 Nov 2018 22:07:17 -0800 (PST)
From: Steven Penny <svnpenn AT gmail DOT com>
To: cygwin AT cygwin DOT com
User-Agent: Tryst/2.8.0 (cup.github.io/umber/tryst)
Subject: Cygwin Git with Windows paths

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

and mixed form:

    $ git clone git://github.com/benhoyt/goawk 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

This causes problems for any non-Cygwin tools that might call Git:

http://github.com/golang/go/issues/23155


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