t6200: avoid path mangling issue on Windows

2013-04-17 Thread Johannes Sixt
From: Johannes Sixt MSYS bash interprets the slash in the argument core.commentchar="/" as root directory and mangles it into a Windows style path. Use a different core.commentchar to dodge the issue. Signed-off-by: Johannes Sixt --- t/t6200-fmt-merge-msg.sh | 6 +++--- 1 file changed, 3 inser

Re: t6200: avoid path mangling issue on Windows

2013-04-18 Thread Junio C Hamano
Johannes Sixt writes: > From: Johannes Sixt > > MSYS bash interprets the slash in the argument core.commentchar="/" > as root directory and mangles it into a Windows style path. Use a > different core.commentchar to dodge the issue. > > Signed-off-by: Johannes Sixt > ... > - git -c core.com

Re: t6200: avoid path mangling issue on Windows

2013-04-18 Thread Johannes Sixt
Am 4/18/2013 19:05, schrieb Junio C Hamano: > Johannes Sixt writes: > >> From: Johannes Sixt >> >> MSYS bash interprets the slash in the argument core.commentchar="/" >> as root directory and mangles it into a Windows style path. Use a >> different core.commentchar to dodge the issue. >> >> Sign

Re: t6200: avoid path mangling issue on Windows

2013-04-19 Thread Junio C Hamano
Johannes Sixt writes: > Am 4/18/2013 19:05, schrieb Junio C Hamano: >> Johannes Sixt writes: >> >>> From: Johannes Sixt >>> >>> MSYS bash interprets the slash in the argument core.commentchar="/" >>> as root directory and mangles it into a Windows style path. Use a >>> different core.commentch

Re: t6200: avoid path mangling issue on Windows

2013-04-19 Thread Johannes Sixt
Am 19.04.2013 18:33, schrieb Junio C Hamano: > Johannes Sixt writes: > >> Am 4/18/2013 19:05, schrieb Junio C Hamano: >>> Johannes Sixt writes: >>> From: Johannes Sixt MSYS bash interprets the slash in the argument core.commentchar="/" as root directory and mangles it into a

Re: t6200: avoid path mangling issue on Windows

2013-04-19 Thread Junio C Hamano
Johannes Sixt writes: > A patch auther whose first instinct is to write 'foo=/' will never write > 'foo=x', let alone 'foo="""/"""'. Someone will have to discover the > issue eventually and write a patch to fix it, and someone will have to > apply it. That is a separate issue. Didn't I say I'll

Re: t6200: avoid path mangling issue on Windows

2013-04-20 Thread Jonathan Nieder
Junio C Hamano wrote: > But a _real user_ who wants to use a slash there has no way of doing > so. Doesn't foo=// do that in the msys world? If I am reading mingw/msys/rt/src/winsup/cygwin/path.cc correctly then the way to pass a true double-slash is foo=///. Jonathan -- To unsubscribe from thi

Re: t6200: avoid path mangling issue on Windows

2013-04-20 Thread Johannes Sixt
Am 21.04.2013 02:05, schrieb Jonathan Nieder: > Junio C Hamano wrote: > >> But a _real user_ who wants to use a slash there has no way of doing >> so. > > Doesn't foo=// do that in the msys world? If I am reading > mingw/msys/rt/src/winsup/cygwin/path.cc correctly then the way to pass > a true d

Re: t6200: avoid path mangling issue on Windows

2013-04-20 Thread Jonathan Nieder
Johannes Sixt wrote: > Am 21.04.2013 02:05, schrieb Jonathan Nieder: >> Junio C Hamano wrote: >>> But a _real user_ who wants to use a slash there has no way of doing >>> so. >> >> Doesn't foo=// do that in the msys world? If I am reading >> mingw/msys/rt/src/winsup/cygwin/path.cc correctly then

Re: t6200: avoid path mangling issue on Windows

2013-04-21 Thread Junio C Hamano
Jonathan Nieder writes: > Junio C Hamano wrote: > >> But a _real user_ who wants to use a slash there has no way of doing >> so. > > Doesn't foo=// do that in the msys world? "that" refers to...? Do you mean: $ value=/; mycmd key="$value" breaks msys, but you can say $ value=//;