delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/03/16:39:40

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4C0812E4.502@redhat.com>
Date: Thu, 03 Jun 2010 14:39:00 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: C: vs /cygdrive/c and git
References: <4C080A98 DOT 8090004 AT kitware DOT com> <4C080E71 DOT 5000608 AT redhat DOT com> <4C08115C DOT 9020605 AT kitware DOT com>
In-Reply-To: <4C08115C.9020605@kitware.com>
X-IsSubscribed: yes
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

--------------enig002E80C7E21473C13F413FB8
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 06/03/2010 02:32 PM, Bill Hoffman wrote:
> On 6/3/2010 4:20 PM, Eric Blake wrote:
>> On 06/03/2010 02:03 PM, Bill Hoffman wrote:
>>> Can someone explain why if I use c:/some/path as an argument to git
>>> clone, it fails.  But if I use /cygdrive/c/some/path it works.
>>
>> Because c:/some/path looks like you are asking for protocol:file for
>> talking to a remote machine, while /cygdrive/c/some/path makes it
>> obvious that you are asking for a local path, and because git is
>> compiled to behave in a posix manner.
>>
>> If drive letters work, great for you.  But if they don't, I am not going
>> to spend any time beating up the source code to make them work.  They
>> are intentionally unsupported here - we prefer posix paths for a reason.
>>
> OK, if that is really what is happening.  However, that does not seem to
> explain the translation of paths that I am seeing.
>=20
> '/cygdrive/c/Users/hoffman/Work/My
> Builds/CMake-gmake/f/c:/Users/hoffman/Work/My
> Builds/CMake-gmake/Tests/ExternalProject/LocalRepositories/GIT/objects'
>=20
> It is using the current directory smashed together with the c: path that
> I gave it.

In that case, git is just blindly treating c: as ./c: - that is, the
relative file named "c:" in the current directory.  Since POSIX allows
this interpretation, there's no reason for git to special case it and
try otherwise.

--=20
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig002E80C7E21473C13F413FB8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJMCBLkAAoJEKeha0olJ0NqvT4H/jwnpp/mhlUcMMwi6xV4MTaa
Qop2bjgnbJLHaT3LOv3bQlxaW/3iueoORWCiPEp7/g2Cs304eg2F4MIUe5IGtUj0
qvoKPL2RLuP4JDbRkOQJ8YX8kMiFSz2nSXSbsvHBxnVwaYC140Zp60/PzWWw6ofX
V3D8okhvMbxWQrFu2rB8ogvNv1e5+p7zR1V74U8/pSsQHj2WJrl5AOVgBiQLhi4R
WnAzQ2oRLab2fthh4jMKickgdhfdSOzpNXdRm0y/wrJrQhx9Df6cmRpT1iYUBRg3
WyT+jjd1nO7MjduQEhph3iXkQldtOT72fnHJCG9Ll0UPd4mhTdSJlOkGZLr1vUo=
=uw9+
-----END PGP SIGNATURE-----

--------------enig002E80C7E21473C13F413FB8--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019