git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Schuberth <sschuberth@gmail.com>
To: worldhello.net@gmail.com, Johannes Sixt <j6t@kdbg.org>,
	 Thomas Braun <thomas.braun@virtuell-zuhause.de>
Cc: Git Mailing List <git@vger.kernel.org>,
	msysGit Mailinglist <msysgit@googlegroups.com>
Subject: Re: Same test-path-utils behaves differently on different Windows systems
Date: Thu, 10 Oct 2013 17:52:15 +0200	[thread overview]
Message-ID: <CAHGBnuORD-nTaYVVMt5WJhFnHU4oj0=5WiLXMAMa2Y4mz-vNXg@mail.gmail.com> (raw)
In-Reply-To: <CAHGBnuNaVWxa2kNqf3n9GmZZxFryLfJqKB5TxmDK5BiG5x53VQ@mail.gmail.com>

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:/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/

So the only obvious thing that changed is the Windows version, but I
find it hard to believe that this influences MSYS path mangling.

[1] http://msysgit.googlecode.com/files/msysGit-fullinstall-1.8.4-preview20130916.exe

-- 
Sebastian Schuberth


On Thu, Oct 10, 2013 at 2:13 PM, Sebastian Schuberth
<sschuberth@gmail.com> wrote:

> 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/ => ../../x/y
> # test "$(test-path-utils relative_path '/x/y' '/a/b/')" = '../../x/y'
>
> If I run "test-path-utils relative_path '/' '/a/b/'" on the server
> (running Windows Server 2008 R2) that perform the testing I indeed
> get:
>
> $ test-path-utils relative_path '/' '/a/b/'
> ../../C:/Jenkins/mingwGitDevEnv-test/workspace/mingwGitDevEnv
> $ pwd -W
> C:/Jenkins/mingwGitDevEnv-test/workspace/mingwGitDevEnv/git
>
> The funny thing is, if I run the exact same binary on my local Windows
> 8 64-bit machine I get the expected result:
>
> $ test-path-utils relative_path '/' '/a/b/'
> ../../
> $ pwd -W
> C:/Jenkins/mingwGitDevEnv-test/workspace/mingwGitDevEnv/git
>
> So how can the exact same test-path-utils binary create different
> results fo the same arguments? I'd be very grateful for any insights.
> If you want to play around with it yourself, you can download the
> while Jenkins workspace as a ZIP at [4] (but note that it's almost 1
> GiB).
>
> It's probably also interesting to mention that t0060-path-utils did
> not yet fail in build 38 [5] and I'm currently in the process to find
> out what changed.
>
> [1] https://github.com/sschuberth/mingwGitDevEnv/
> [2] http://mingwgitdevenv.cloudapp.net/job/mingwGitDevEnv-test/42/
> [3] http://mingwgitdevenv.cloudapp.net/job/mingwGitDevEnv-test/ws/test-results/t0060-path-utils.sh/*view*/
> [4] http://mingwgitdevenv.cloudapp.net/job/mingwGitDevEnv-test/ws/mingwGitDevEnv/
> [5] http://mingwgitdevenv.cloudapp.net/job/mingwGitDevEnv-test/38/
>
> --
> Sebastian Schuberth

-- 
-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups "msysGit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

  reply	other threads:[~2013-10-10 15:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-10 12:13 Same test-path-utils behaves differently on different Windows systems Sebastian Schuberth
2013-10-10 15:52 ` Sebastian Schuberth [this message]
2013-10-10 17:57   ` Johannes Sixt
2013-10-10 19:47     ` Sebastian Schuberth
2013-10-10 20:04       ` Johannes Sixt
2013-10-10 20:27         ` Sebastian Schuberth
2013-10-10 20:47         ` Sebastian Schuberth
2013-10-15 14:54 ` wwiser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHGBnuORD-nTaYVVMt5WJhFnHU4oj0=5WiLXMAMa2Y4mz-vNXg@mail.gmail.com' \
    --to=sschuberth@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=j6t@kdbg.org \
    --cc=msysgit@googlegroups.com \
    --cc=thomas.braun@virtuell-zuhause.de \
    --cc=worldhello.net@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).