On Sun, Feb 6, 2022 at 6:30 AM Eric Sunshine <sunshine@xxxxxxxxxxxxxx> wrote: > On Mon, Jan 31, 2022 at 10:01 AM Derrick Stolee via GitGitGadget > <gitgitgadget@xxxxxxxxx> wrote: > > + new=repo/.git/worktrees/worktree/info/sparse-checkout && > > For robustness, this should be using: > > new=$(git rev-parse --git-path info/sparse-checkout) > > to retrieve ".git/worktrees/<id>/info/sparse-checkout" rather than > hard-coding "worktree" for "<id>". Of course, I mean to type: new=$(git -C worktree rev-parse --git-path info/sparse-checkout)