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

Re: Test t2028 failes

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Apr 3, 2018, 08:45 UTC
Message-ID
<CAPig+cTvVwLDW+6rHNZbUwWwYUGBRioA6B+jM832JpUYAoPVWw@mail.gmail.com>
In-Reply-To
<0156c688-2c81-1de8-f550-efb517b7707d@frm2.tum.de>
On Tue, Apr 3, 2018 at 4:38 AM, Jens Krüger <Jens.Krueger@frm2.tum.de> wrote:
Show 21 quoted lines
> Am 03.04.2018 um 10:16 schrieb Eric Sunshine:
>> Using the "out" file you attached, can you show the output of these
>> commands?
>>      grep "^worktree.*/destination" out
>>      echo $?
>>      grep "^worktree.*/source" out
>>      echo $?
>> I'd expect the first $? to report 0 and the second 1 in a working
>> installation.
>
> Both of them return 0, but I guess I found the problem. The second
> 'grep' call returned the following output:
>
> worktree /home/jkrueger/sources/git/t/trash directory.t2028-worktree-move
> worktree /home/jkrueger/sources/git/t/trash
> directory.t2028-worktree-move/elsewhere
> worktree /home/jkrueger/sources/git/t/trash
> directory.t2028-worktree-move/some-dir/destination
>
> If I move my checkout into another directory not containing 'source' in
> the path it will work.

Okay, thanks for diagnosing the problem. We can fix the test by tightening the regex to also anchor with '$' so that it won't be fooled like that.

Previous: Jens KrügerNext: Jens Krüger
Message 6 of 9 in “Test t2028 failes”
  1. Jens KrügerApr 3, 2018
  2. Eric SunshineApr 3, 2018
  3. Jens KrügerApr 3, 2018
  4. Eric SunshineApr 3, 2018
  5. Jens KrügerApr 3, 2018
  6. Eric SunshineApr 3, 2018
  7. Jens KrügerApr 3, 2018
  8. Eric SunshineApr 3, 2018
  9. Jens KrügerApr 3, 2018

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.