t3427: fix erroneous assumption
[gitweb.git] / t / t5580-clone-push-unc.sh
index c3703765f47d19214ec00c2d4c6e71b5dfc05fa7..b3c8a92450bc0e9ba869563ef1a7a4c1362cebd6 100755 (executable)
@@ -40,7 +40,7 @@ test_expect_success clone '
        git clone "file://$UNCPATH" clone
 '
 
-test_expect_failure 'clone with backslashed path' '
+test_expect_success 'clone with backslashed path' '
        BACKSLASHED="$(echo "$UNCPATH" | tr / \\\\)" &&
        git clone "$BACKSLASHED" backslashed
 '
@@ -62,4 +62,16 @@ test_expect_success MINGW 'remote nick cannot contain backslashes' '
        test_i18ngrep ! "unable to access" err
 '
 
+test_expect_success 'unc alternates' '
+       tree="$(git rev-parse HEAD:)" &&
+       mkdir test-unc-alternate &&
+       (
+               cd test-unc-alternate &&
+               git init &&
+               test_must_fail git show $tree &&
+               echo "$UNCPATH/.git/objects" >.git/objects/info/alternates &&
+               git show $tree
+       )
+'
+
 test_done