@matheusbsbs / matheus-bagliano / commits / bfe2bbb47f
Fork 0

t5580: test cloning without file://, test fetching via UNC paths

On Windows, it is quite common to work with network drives. The format of the paths to network drives (or "network shares", or UNC paths) is: \\<server>\<share>\... We already have a couple regression tests revolving around those types of paths, but we missed cloning and fetching from UNC paths without leading `file://` (and with backslashes instead of forward slashes). This lil' patch closes that gap. It gets a bit silly to add the commands to the name of the test script, so let's just rename it while we're testing more UNC stuff. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Feb 13, 2020 at 21:51 UTC bfe2bbb47f1213e9d4ef6b8d1679b58b37485625
1 file changed +12
t/t5580-unc-paths.sh renamed
+12
@@ -40,11 +40,23 @@ test_expect_success clone '
40 git clone "file://$UNCPATH" clone
41 '
42
43 +test_expect_success 'clone without file://' '
44 + git clone "$UNCPATH" clone-without-file
45 +'
46 +
47 test_expect_success 'clone with backslashed path' '
48 BACKSLASHED="$(echo "$UNCPATH" | tr / \\\\)" &&
49 git clone "$BACKSLASHED" backslashed
50 '
51
52 +test_expect_success fetch '
53 + git init to-fetch &&
54 + (
55 + cd to-fetch &&
56 + git fetch "$UNCPATH" master
57 + )
58 +'
59 +
60 test_expect_success push '
61 (
62 cd clone &&