diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-05-19 16:45:32 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-05-19 16:45:32 +0900 |
commit | 0b076b4c0ed9d111b599092eb0458c098bad5a42 (patch) | |
tree | 491fb4ae285e88e99651ae79d20ab30ff97c1151 /t | |
parent | b5fb62bf4967c412bc800fce4a4a97e7006daa32 (diff) | |
parent | 397a46db786a53db5261a74232447f7b49574bba (diff) | |
download | git-0b076b4c0ed9d111b599092eb0458c098bad5a42.tar.gz |
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
Diffstat (limited to 't')
-rwxr-xr-x | t/t5580-clone-push-unc.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t5580-clone-push-unc.sh b/t/t5580-clone-push-unc.sh index 217adf3a63..b3c8a92450 100755 --- a/t/t5580-clone-push-unc.sh +++ b/t/t5580-clone-push-unc.sh @@ -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 |