summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-05-19 07:45:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-05-19 07:45:32 (GMT)
commit0b076b4c0ed9d111b599092eb0458c098bad5a42 (patch)
tree491fb4ae285e88e99651ae79d20ab30ff97c1151
parentb5fb62bf4967c412bc800fce4a4a97e7006daa32 (diff)
parent397a46db786a53db5261a74232447f7b49574bba (diff)
downloadgit-0b076b4c0ed9d111b599092eb0458c098bad5a42.zip
git-0b076b4c0ed9d111b599092eb0458c098bad5a42.tar.gz
git-0b076b4c0ed9d111b599092eb0458c098bad5a42.tar.bz2
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
-rwxr-xr-xt/t5580-clone-push-unc.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t5580-clone-push-unc.sh b/t/t5580-clone-push-unc.sh
index 217adf3..b3c8a92 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