diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2019-02-25 06:17:45 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-05-07 18:40:01 +0900 |
commit | 397a46db786a53db5261a74232447f7b49574bba (patch) | |
tree | c2819e2f75817d62878c8f8d53841a35603e99c9 /t/t5580-clone-push-unc.sh | |
parent | mingw: allow building with an MSYS2 runtime v3.x (diff) | |
download | tgif-397a46db786a53db5261a74232447f7b49574bba.tar.xz |
t5580: verify that alternates can be UNC paths
On Windows, UNC paths are a very convenient way to share data, and
alternates are all about sharing data.
We fixed a bug where alternates specifying UNC paths were not handled
properly, and it is high time that we add a regression test to ensure
that this bug is not reintroduced.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5580-clone-push-unc.sh')
-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 |