Johannes Sixt wrote:
> Am 21.04.2013 02:05, schrieb Jonathan Nieder:
>> Junio C Hamano wrote:

>>> But a _real user_ who wants to use a slash there has no way of doing
>>> so.
>> Doesn't foo=// do that in the msys world?  If I am reading
>> mingw/msys/rt/src/winsup/cygwin/ correctly then the way to pass
>> a true double-slash is foo=///.
> That would be totally unexpected.

There is an exception to the path mangling for //unc/paths, if that's
what you mean.

>From [1]:

  if (path[0] == '/' && path[1] == '/')
      int tidx = 2;
      while (spath[tidx] && spath[tidx] == '/')
      if (strchr (&spath[tidx], '/'))
          retpathcpy (spath);
          retpathcpy (&spath[1]);
      return ScrubRetpath (retpath);

I haven't tested, since I don't have easy access to a Windows test


To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to