Skip to content

Commit f1fb0b4

Browse files
committed
Merge branch 'test-unc-alternates'
The fix we introduced in Git for Windows will be made obsolete by a more general fix that has been already accepted into upstream Git's `next` branch. But we still can introduce a regression test that verifies that this bug will be caught very quickly, if reintroduced. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 7dec2b8 + 3835876 commit f1fb0b4

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
@@ -51,4 +51,16 @@ test_expect_success 'remote nick cannot contain backslashes' '
5151
test_i18ngrep ! "unable to access" err
5252
'
5353

54+
test_expect_success 'unc alternates' '
55+
tree="$(git rev-parse HEAD:)" &&
56+
mkdir test-unc-alternate &&
57+
(
58+
cd test-unc-alternate &&
59+
git init &&
60+
test_must_fail git show $tree &&
61+
echo "$UNCPATH/.git/objects" >.git/objects/info/alternates &&
62+
git show $tree
63+
)
64+
'
65+
5466
test_done

0 commit comments

Comments
 (0)