t800[12]: work around MSys limitation
commitd494119bb38fdea006b3351fcdc433491721e27c
authorKarsten Blees <blees@dcon.de>
Tue, 10 Sep 2013 18:50:19 +0000 (10 13:50 -0500)
committerStepan Kasal <kasal@ucw.cz>
Thu, 15 May 2014 07:42:48 +0000 (15 09:42 +0200)
treebffb8f18f244572625ef955df56747e659e46d9d
parent502f0978a73b0d6e91ec589adbfa9ecdc1e852cb
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