delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/11/18/12:43:59

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=aCC9ttg9z99AAfZ+
efbgu77CqfK9z8yCnXAaxgOAZcCSNNrHvPF0Q5lbtJcGse6d2nNqQfKFeRVbLDEr
IN0SOlsT53LBuuk17kvIOPztfQHPorZjWytxLS6KJbPAxPB7Pz7raBNYbJ0KhpQS
uG1b53i2uBkayfGMuR2KEu1KXsY=
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=bYdvrryZnXgJWTn/GfjuC6
Ea698=; b=FqPAN5DF191tWKAv0GmUa3ofHf0se2HucUJF3EOHpVZdc0fXXNbquM
audOxhM5L4yfbFDA0Am4TQDazYOSvwHx3Pk2JSovime3579cvpWyKbDuBzmAIl3F
ARdGqYnUBgHlUIIPmgMNLL5f5vlaFugPA8vl7BGeIhq11z5nrGBDI=
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=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=cygpath, bash, HContent-Transfer-Encoding:8bit
X-HELO: mail-it1-f180.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=vOsvYCVs4ryP99hCWpB9RNKQHU8nGe2XyYlYT4Xl/MI=; b=rJR8plS76s/WTo+jLWhSNVy996SKjR0TlBvOgTEDh5ny3QElDBcAcWk5W6Cd+/KLCL LMWEgMKJ1dVanbCURN/TJB+KYoTlhMTzaiGu+7qd63Uvb/FfEDzgWymnaxSYTKcm7zBD mXy8XO/diHrUyRzWFD/LA/w4EcY7yEtNyyW9n6W4CQYWfFTG0xvd3yOyfh8a0UFXTdf1 IBL4DjifAk0xMZr7i6WTKJHWV/Emft9a6Y9ovMeAPj96XBwc8cS8GDnDsOxxTJ/DRvV+ 62vBeq04B3A64hlNhL+I0jb9fmyc9DM1ny3qT5sPm6v0UbVRvxvAs4Wn0Xox0Dw0K/v8 zCDw==
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>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <2eb650f1-4bd9-0f8b-6e69-6c6950cd2207@gmail.com>
Date: Sun, 18 Nov 2018 12:43:40 -0500
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: <5bf10195.1c69fb81.27494.eed4@mx.google.com>
X-IsSubscribed: yes
Note-from-DJ: This may be spam

On 11/18/2018 1:07 AM, Steven Penny 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
> 
> 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

What exactly are you trying to solve by your query?  The golang issue 
you point to is marked as resolved and many suggestions similar to the 
ones you've been given in this query exist in it; including a go script 
to convert the strings on the command line.  I probably would use a 
similar method with a bash script but calling cygpath.

Good luck,
-- 
cyg Simple

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