diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2016-03-23 11:55:13 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-03-23 10:02:46 -0700 |
commit | 45bf32971c067a542024a1b5f47fc26237baa713 (patch) | |
tree | 17005cad26156894506bb41cadc32faa31fd44f8 /t/t4018 | |
parent | t1300-repo-config: make it resilient to being run via 'sh -x' (diff) | |
download | tgif-45bf32971c067a542024a1b5f47fc26237baa713.tar.xz |
t1300: fix the new --show-origin tests on Windows
On Windows, we have that funny situation where the test script can refer
to POSIX paths because it runs in a shell that uses a POSIX emulation
layer ("MSYS2 runtime"). Yet, git.exe does *not* understand POSIX paths
at all but only pure Windows paths.
So let's just convert the POSIX paths to Windows paths before passing
them on to Git, using `pwd` (which is already modified on Windows to
output Windows paths).
While fixing the new tests on Windows, we also have to exclude the tests
that want to write a file with a name that is illegal on Windows
(unfortunately, there is more than one test trying to make use of that
file).
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018')
0 files changed, 0 insertions, 0 deletions