test-wildmatch: avoid Windows path mangling
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Tue, 20 Nov 2012 07:02:39 +0000 (08:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Nov 2012 20:09:13 +0000 (12:09 -0800)
commitef49841ddf98ed1eb40c60153072fa1a91fc2f18
tree24affb2a4be0fd5d822d68be9d5c26ad145a27ac
parent237ec6e40d4fd1a0190c4ffde6d18278abc5853a
test-wildmatch: avoid Windows path mangling

The MSYS bash mangles arguments that begin with a forward slash
when they are passed to test-wildmatch. This causes tests to fail.
Avoid mangling by prepending "XXX", which is removed by
test-wildmatch before further processing.

[J6t: reworded commit message]

Reported-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
t/t3070-wildmatch.sh
test-wildmatch.c