diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-02-05 22:26:13 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-02-05 22:26:13 (GMT) |
commit | f5dd919064c30fb8f22f022455eeaf975eff57c6 (patch) | |
tree | ad52ea8c0ab7f1d17c8b6b17e1e10035c35fcd1a /t | |
parent | e91a1b1ade3ea07bdf8cdd8cd4fa126caac12a36 (diff) | |
parent | 9e9da23c2765050ff30d34540fbab62a1b4e5d01 (diff) | |
download | git-f5dd919064c30fb8f22f022455eeaf975eff57c6.zip git-f5dd919064c30fb8f22f022455eeaf975eff57c6.tar.gz git-f5dd919064c30fb8f22f022455eeaf975eff57c6.tar.bz2 |
Merge branch 'js/mingw-unc-path-w-backslashes'
In Git for Windows, "git clone \\server\share\path" etc. that uses
UNC paths from command line had bad interaction with its shell
emulation.
* js/mingw-unc-path-w-backslashes:
mingw: special-case arguments to `sh`
mingw (t5580): document bug when cloning from backslashed UNC paths
Diffstat (limited to 't')
-rwxr-xr-x | t/t0061-run-command.sh | 10 | ||||
-rwxr-xr-x | t/t5580-clone-push-unc.sh | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/t/t0061-run-command.sh b/t/t0061-run-command.sh index 99a614b..9c7604d 100755 --- a/t/t0061-run-command.sh +++ b/t/t0061-run-command.sh @@ -199,4 +199,14 @@ test_expect_success 'GIT_TRACE with environment variables' ' ) ' +test_expect_success MINGW 'verify curlies are quoted properly' ' + : force the rev-parse through the MSYS2 Bash && + git -c alias.r="!git rev-parse" r -- a{b}c >actual && + cat >expect <<-\EOF && + -- + a{b}c + EOF + test_cmp expect actual +' + test_done diff --git a/t/t5580-clone-push-unc.sh b/t/t5580-clone-push-unc.sh index ba548df..217adf3 100755 --- a/t/t5580-clone-push-unc.sh +++ b/t/t5580-clone-push-unc.sh @@ -40,6 +40,11 @@ test_expect_success clone ' git clone "file://$UNCPATH" clone ' +test_expect_success 'clone with backslashed path' ' + BACKSLASHED="$(echo "$UNCPATH" | tr / \\\\)" && + git clone "$BACKSLASHED" backslashed +' + test_expect_success push ' ( cd clone && |