t1300: fix the new --show-origin tests on Windows
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 23 Mar 2016 10:55:13 +0000 (11:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Mar 2016 17:02:46 +0000 (10:02 -0700)
commit45bf32971c067a542024a1b5f47fc26237baa713
tree17005cad26156894506bb41cadc32faa31fd44f8
parent2ec20212c56575dc5e6875f36fa68b6b4a8edd70
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>
t/t1300-repo-config.sh