git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Wwwiser@gmail.com <wwiser@gmail.com>
Date
Oct 15, 2013, 14:54 UTC
Message-ID
<1a6eb0b0-3448-45e7-ab8b-95379202ddf4@googlegroups.com>
In-Reply-To
<CAHGBnuNaVWxa2kNqf3n9GmZZxFryLfJqKB5TxmDK5BiG5x53VQ@mail.gmail.com>
Hi,

I downloaded the 1.8.4 release yesterday and I believe I am observing this same issue on Windows 7 64-bit. When executing git difftool -d, after my difftool exits, these errors are reported in the console: fatal: unable to access '../../../../../../../../c:/myProjects/project/.git/config': Invalid argument fatal: unable to access '../../../../../../../../c:/myProjects/project/.git/config': Invalid argument diff-files --name-only -z: command returned error: 128

The path is correct (relative to the git installation) but the "/c:/" instead of "/c/" seems to be causing the issue.

Is this likely to be fixed soon? 
Wesley Wiser
On Thursday, October 10, 2013 8:13:32 AM UTC-4, Sebastian Schuberth wrote:
Show 50 quoted lines
>
> 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.
Previous: Sebastian Schuberth
Message 8 of 8 in “Same test-path-utils behaves differently on different Windows systems”
  1. Sebastian SchuberthOct 10, 2013
  2. Sebastian SchuberthOct 10, 2013
  3. Johannes SixtOct 10, 2013
  4. Sebastian SchuberthOct 10, 2013
  5. Johannes SixtOct 10, 2013
  6. Sebastian SchuberthOct 10, 2013
  7. Sebastian SchuberthOct 10, 2013
  8. wwiser@gmail.comOct 15, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.