Re: git rebase exec make -C in worktree confuses repo root dir
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Oct 14, 2024, 21:19 UTC
- Message-ID
- <Zw2K5xJAOGWitfXr@nand.local>
- In-Reply-To
- <CAL2+Miudq0UXAb=R24v+ftZVkHy2We1CFsFAt__tCYMWtCfOow@mail.gmail.com>
On Mon, Oct 14, 2024 at 10:46:45PM +0200, David Moberg wrote:
Show 10 quoted lines
> What did you expect to happen? (Expected behavior) > > 1. This command should return the worktree toplevel, not a subdirectory > $ git rev-parse --show-toplevel > /tmp/tmp.DUUAVQCIKe/repo2 > > 2. And the git grep command should return the match from dir/Makefile, > not Fatal Error > $ git grep banana > Makefile: git grep "banana" -- "$$BANANA"
I am not sure if this is expected behavior or not, but it feels unintentional to me. Perhaps I am missing something funky in your example that is causing it to behave this way.
Does this bisect to anything interesting, or has it always behaved this way?
Thanks, Taylor