Re: "add worktree" fails with "fatal: Invalid path" error
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- May 14, 2019, 12:33 UTC
- Message-ID
- <CACsJy8DnmQxO+r3ybg2zpCSMZJaTwc_C8V3QMCDjvga09sBigw@mail.gmail.com>
- In-Reply-To
- <CAHAc2jf2Ojve=NaEshXx9qk8rtD4NHxqLEpqZq8c9t0yE4m_Qw@mail.gmail.com>
On Mon, May 13, 2019 at 7:55 PM Shaheed Haque <shaheedhaque@gmail.com> wrote:
Show 5 quoted lines
> The original code used the more obvious "git worktree remove" rather > than "git worktree prune" but I switched partly because remove seemed > slow (I cannot now quantify what caused me to think that), and partly > because I was having other issues which, I now realise, you probably > addressed in your recent "stat versus mkdir race" change.
It should be as slow as "git status; rm -r". The first command _could_ be slow. But if you find it significantly slower than that, I will be glad to receive another bug report.
-- Duy