Skip to content

Commit

Permalink
Merge branch 'js/t5580-unc-alternate-test'
Browse files Browse the repository at this point in the history
An additional test for MinGW

* js/t5580-unc-alternate-test:
  t5580: verify that alternates can be UNC paths
  • Loading branch information
gitster committed May 19, 2019
2 parents b5fb62b + 397a46d commit 0b076b4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions t/t5580-clone-push-unc.sh
Expand Up @@ -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

0 comments on commit 0b076b4

Please sign in to comment.