Re: [RFC PATCH 0/1] dir: consider worktree config in path recursion
- From
- oss dev <gg.oss.dev@gmail.com>
- Date
- May 6, 2022, 20:00 UTC
- Message-ID
- <CAAA5oLk-HhJQ2571cHd7qAZM+VFiDA=W12zyh47XzkFJik+XAw@mail.gmail.com>
- In-Reply-To
- <xmqqilqimw6v.fsf@gitster.g>
On Fri, May 6, 2022 at 1:02 PM Junio C Hamano <gitster@pobox.com> wrote:
> And this is supposed to add a new entry to the index at > "git-test-123456/test-file"?
Correct, I expected an index entry at "git-test-123456/test-file". If I run the following:
``` test_repo="$(mktemp -d /tmp/git-test-XXXXXXX)" cd "$test_repo"
>test-file >/tmp/test-file
git init git config core.worktree /tmp git add test-file git add /tmp/test-file ```
.. then with current git I get an index entry for "/tmp/test-file" but not "/tmp/git-test-123456/test-file". That is, I can add files outside the standard worktree location but not inside it.
A playground example of the prior behavior (git 2.25.1) is here: https://www.onlinegdb.com/OXt2cvL8S