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

Re: [PATCH] t0060: loosen overly strict expectations

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Jan 15, 2016, 14:55 UTC
Message-ID
<56990854.5080005@ramsayjones.plus.com>
In-Reply-To
<569897B7.4040302@kdbg.org>
On 15/01/16 06:54, Johannes Sixt wrote:
Show 38 quoted lines
> Am 15.01.2016 um 01:46 schrieb Ramsay Jones:
>>
>>
>> On 14/01/16 22:14, Johannes Sixt wrote:
>>> Am 14.01.2016 um 19:13 schrieb Ramsay Jones:
>>>> Correct me if I'm wrong (quite possible), but
>>>> _each_ drive has a current working directory associated with
>>>> it in win32, so it's a bit difficult to use drive designators
>>>> with a relative path (eg. C:usr/lib).
>>>
>>> As far as it matters for Git, such a path is still an absolute path,
>>> because it is not anchored at $(pwd).
>>
>> I have been using cygwin on windows since beta-18 (about 1995), in order
>> to avoid most of the horrors of the windows command line, so I'm a little
>> rusty. ;-)
>>
>> You know windows _much_ better than me, so could you please educate me
>> on this point. I tried this (on windows 8.1):
> 
>>      C:\cygwin64\home\ramsay\junk>dir C:sub-1
>>      dir C:sub-1
>>       Volume in drive C is TI31255200A
>>       Volume Serial Number is 0024-4AC0
>>
>>       Directory of C:\cygwin64\home\ramsay\junk\sub-1
>> [...]
>>
>> ... which seems to contradict what you say above.
> 
> This example is not super-illuminating. You must cd to a directory on a different drive, say D:\foo, then call dir C:sub-1. The result will be the directory listing from somewhere deep inside the C: hierarchy, not from inside D:\foo.
> 
>>
>> What am I missing?
> 
> Git assumes, given a path in $path that is declared to be relative, that "$path" and "$(pwd)/$path" denote the same thing.
> 
> But that does not work when path="C:sub-1". Yeah, "C:sub-1" is relative to something, but *in general* that something is not $(pwd).

I obviously didn't express myself very well, but your answer seems to be in violent agreement with what I wanted to say! ;-)

ATB, Ramsay Jones

Previous: Johannes SixtNext: Eric Sunshine
Message 9 of 13 in “t0060: loosen overly strict expectations”
  1. t0060: loosen overly strict expectationsJohannes Schindelin, Jan 14, 2016
  2. Junio C HamanoJan 14, 2016
  3. Ramsay JonesJan 14, 2016
  4. Johannes SixtJan 14, 2016
  5. Ramsay JonesJan 15, 2016
  6. Johannes SchindelinJan 15, 2016
  7. Ramsay JonesJan 15, 2016
  8. Johannes SixtJan 15, 2016
  9. Ramsay JonesJan 15, 2016
  10. Eric SunshineJan 14, 2016
  11. Johannes SchindelinJan 15, 2016
  12. Junio C HamanoJan 15, 2016
  13. Johannes SchindelinJan 19, 2016

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.