t800[12]: work around MSys limitation
commite4aba7b46b34ede520aad0e768a2c1d31a96e839
authorKarsten Blees <blees@dcon.de>
Tue, 10 Sep 2013 18:50:19 +0000 (10 13:50 -0500)
committerStepan Kasal <kasal@ucw.cz>
Thu, 29 May 2014 08:41:51 +0000 (29 10:41 +0200)
treec1e5b0bf7e33684656ad1913b4885be4fda44b95
parent566b373f0dd2111d9a6f2be3279db59ec2b88e81
t800[12]: work around MSys limitation

MSys works very hard to convert Unix-style paths into DOS-style ones.
*Very* hard.

So hard, indeed, that

git blame -L/hello/,/green/

is translated into something like

git blame -LC:/msysgit/hello/,C:/msysgit/green/

As seen in msys_p2w in src\msys\msys\rt\src\winsup\cygwin\path.cc, line
3204ff:

case '-':
  //
  // here we check for POSIX paths as attributes to a POSIX switch.
  //
...

seemingly absolute POSIX paths in single-letter options get expanded by
msys.dll unless they contain '=' or ';'.

So a quick and very dirty fix is to use '-L/;*evil/'. (Using an equal sign
works only when it is before a comma, so in the above example, /=*green/
would still be converted to a DOS-style path.)

Commit-message-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
t/annotate-tests.sh