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

Re: git rebase exec make -C in worktree confuses repo root dir

From
DMDavid Moberg <kaddkaka@gmail.com>
Date
Oct 14, 2024, 21:34 UTC
Message-ID
<CAL2+MiuG4FQdV3c4tGqcRgV+JWxAfvbo91vdGsnFHwDT0y_VRw@mail.gmail.com>
In-Reply-To
<Zw2K5xJAOGWitfXr@nand.local>

I am not sure if this has worked previously. Where/how far back should I look? Is 2 samples from 6 months and 1 year prior reasonable and enough?

I'm not sure if I understand you, What is the behavior you expect? Are you able to reproduce the behavior?

/David
Den mån 14 okt. 2024 kl 23:19 skrev Taylor Blau <me@ttaylorr.com>:
Show 22 quoted lines
>
> On Mon, Oct 14, 2024 at 10:46:45PM +0200, David Moberg wrote:
> > 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
Previous: Taylor BlauNext: Eric Sunshine
Message 3 of 11 in “git rebase exec make -C in worktree confuses repo root dir”
  1. David MobergOct 14, 2024
  2. Taylor BlauOct 14, 2024
  3. David MobergOct 14, 2024
  4. Eric SunshineOct 15, 2024
  5. David MobergOct 15, 2024
  6. Eric SunshineOct 15, 2024
  7. Phillip WoodOct 16, 2024
  8. Taylor BlauOct 16, 2024
  9. Elijah NewrenOct 17, 2024
  10. Eric SunshineOct 16, 2024
  11. phillip.wood123@gmail.comNov 5, 2024

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.