t800[12]: work around MSys limitation
commit6167d240ce4414f19f51eda25b9cb6fe3eb54f38
authorKarsten Blees <blees@dcon.de>
Tue, 10 Sep 2013 18:50:19 +0000 (10 13:50 -0500)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 17 Feb 2014 18:08:10 +0000 (17 12:08 -0600)
tree178d799f1ec55e3582002ac4f701372f2174f9a2
parent2482bc95bfb321bae3bb70d6516df53efc631261
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