Skip to content

Commit 0b076b4

Browse files
committed
Merge branch 'js/t5580-unc-alternate-test'
An additional test for MinGW * js/t5580-unc-alternate-test: t5580: verify that alternates can be UNC paths
2 parents b5fb62b + 397a46d commit 0b076b4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

t/t5580-clone-push-unc.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,16 @@ test_expect_success MINGW 'remote nick cannot contain backslashes' '
6262
test_i18ngrep ! "unable to access" err
6363
'
6464

65+
test_expect_success 'unc alternates' '
66+
tree="$(git rev-parse HEAD:)" &&
67+
mkdir test-unc-alternate &&
68+
(
69+
cd test-unc-alternate &&
70+
git init &&
71+
test_must_fail git show $tree &&
72+
echo "$UNCPATH/.git/objects" >.git/objects/info/alternates &&
73+
git show $tree
74+
)
75+
'
76+
6577
test_done

0 commit comments

Comments
 (0)