Re: Same test-path-utils behaves differently on different Windows systems

2013-10-10 Thread Sebastian Schuberth
On Thu, Oct 10, 2013 at 10:04 PM, Johannes Sixt wrote: >> PS: I'm also quite unhappy about naming the function "mingw_path". The >> path mangling comes from MSYS, not MinGW, so if at all it should be >> named msys_path. But as the code for the "mingw_path" function does >> nothing either MSYS or

Re: Same test-path-utils behaves differently on different Windows systems

2013-10-10 Thread Sebastian Schuberth
On Thu, Oct 10, 2013 at 10:04 PM, Johannes Sixt wrote: >> So the obvious thing would be to replace /a/b/ with >> /foo/bar/ in the tests, but that just masks the problem, or? > > The strange behavior is not a problem in Git, it is a problem of MSYS. > Using /foo/bar instead of /a/b in Git's test s

Re: Same test-path-utils behaves differently on different Windows systems

2013-10-10 Thread Johannes Sixt
Am 10.10.2013 21:47, schrieb Sebastian Schuberth: > So the obvious thing would be to replace /a/b/ with > /foo/bar/ in the tests, but that just masks the problem, or? The strange behavior is not a problem in Git, it is a problem of MSYS. Using /foo/bar instead of /a/b in Git's test suite is a reas

Re: Same test-path-utils behaves differently on different Windows systems

2013-10-10 Thread Sebastian Schuberth
On Thu, Oct 10, 2013 at 7:57 PM, Johannes Sixt wrote: >> test-path-utils I get this on Windows Server 2008 R2 64-bit: >> >> $ test-path-utils mingw_path /a/b/ >> a:/b/ >> >> But if I install [1] on my local Windows 8 64-bit I get: >> >> $ test-path-utils mingw_path /a/b/ >> C:/msysgit/msysGit/a/b

Re: Same test-path-utils behaves differently on different Windows systems

2013-10-10 Thread Johannes Sixt
Am 10.10.2013 17:52, schrieb Sebastian Schuberth: > Hi again, > > the problem can also be reproduced in an easier way, independently of > mingwGitDevEnv and using the mingw_path function instead of > relative_path. If I install msysGit 1.8.4 from [1] and run > test-path-utils I get this on Windows

Re: Same test-path-utils behaves differently on different Windows systems

2013-10-10 Thread Sebastian Schuberth
Hi again, the problem can also be reproduced in an easier way, independently of mingwGitDevEnv and using the mingw_path function instead of relative_path. If I install msysGit 1.8.4 from [1] and run test-path-utils I get this on Windows Server 2008 R2 64-bit: $ test-path-utils mingw_path /a/b/ a:

Same test-path-utils behaves differently on different Windows systems

2013-10-10 Thread Sebastian Schuberth
Hi, for my mingwGitDevEnv project [1] I'm currently looking at the failing Git tests [2]. The first tests that fails is t0060-path-utils [3]: not ok 88 - relative path: / /a/b/ => ../../ # test "$(test-path-utils relative_path '/' '/a/b/')" = '../../' not ok 91 - relative path: /x/y /a/b/ => ../