mingw: support UNC in git clone file://server/share/repo
authorTorsten Bögershausen <tboegi@web.de>
Sat, 24 Aug 2019 22:07:59 +0000 (15:07 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Aug 2019 17:00:33 +0000 (10:00 -0700)
commitebb8d2c90fb0840a0803935804e37e2205505f23
treec218d8e558cc7ea372a858d749241459a92dce1c
parent745f6812895b31c02b29bdfe4ae8e5498f776c26
mingw: support UNC in git clone file://server/share/repo

Extend the parser to accept file://server/share/repo in the way that
Windows users expect it to be parsed who are used to referring to file
shares by UNC paths of the form \\server\share\folder.

[jes: tightened check to avoid handling file://C:/some/path as a UNC
path.]

This closes https://github.com/git-for-windows/git/issues/1264.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c
t/t5500-fetch-pack.sh