Re: Test t2028 failes
- From
- Jens Krüger <jens.krueger@frm2.tum.de>
- Date
- Apr 3, 2018, 08:38 UTC
- Message-ID
- <0156c688-2c81-1de8-f550-efb517b7707d@frm2.tum.de>
- In-Reply-To
- <CAPig+cSsTPKoLfcxrgD4+NhXa5AeWynxumo8Zed_PH-q3U163w@mail.gmail.com>
Am 03.04.2018 um 10:16 schrieb Eric Sunshine:
Show 17 quoted lines
> On Tue, Apr 3, 2018 at 4:01 AM, Jens Krüger <Jens.Krueger@frm2.tum.de> wrote: >> The actual2 file does not exists, if I call the ./t2028-worktree-move.sh >> with the '-v -i' options, only without any option or with '-v' option. > > The content of the various files looks correct, and absence of > "actual2" implies that one of the grep's failed, which is very odd > considering that "out" has the expected content. > > 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.
> Also, are you using an unusual 'grep'? What does "command -v grep" report? >
alias grep='grep --color=auto'