On Mar 17, 2008, at 4:54 PM, Eyvind Bernhardsen wrote:
*** t7201-co.sh ***
* FAIL 10: checkout to detach HEAD with :/message
":/Initial" on the command line is mangled into ";C:/msysgit/
Initial", which is sort of amusing.
This problem is hard to fix.
MSYS' heuristic treats ":/" as a list of paths. The Unix separator ":"
is converted to the Windows separator ";". The path after the ":"
starts with a slash and is thus handled as an absolute path: slash is
converted to the Windows root directory of the MSYS installation. You
can verify this by looking into the MSYS source code [1]. The relevant
function is msys_p2w() in winsup/cygwin/path.cc.
[1] MSYS-1.0.11-20071204-src
I see two solutions. We could tweak msys_p2w() and include a custom
MSYS in msysgit; or we could change git's ":/" prefix to "://". MSYS'
heuristic leaves "://" as is. "://" is regarded as part of an URL and
thus is not changed.
Dscho,
You proposed ":/". Do you see a chance to change the syntax to "://"?
Steffen