Cygwin Git with Windows paths
Sun Nov 18 17:43:00 GMT 2018
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
> 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:
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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin