Re: [PATCH v3 1/2] fetch: Protect branches checked out in all worktrees
- From
Anders Kaseorg <andersk@mit.edu>
- Date
- Nov 9, 2021, 05:48 UTC
- Message-ID
- <503ee252-c733-ce8e-14ed-d4d1909682b8@mit.edu>
- In-Reply-To
- <a1acda2b-7cd0-0c1a-8c60-681d79418872@gmail.com>
On 11/8/21 21:19, Bagas Sanjaya wrote:
Show 7 quoted lines
> On 09/11/21 03.15, Anders Kaseorg wrote: >> As a side effect of using find_shared_symref, we’ll also refuse the >> fetch when we’re on a detached HEAD because we’re rebasing or bisecting >> on the branch in question. This seems like a sensible change. > > We can say "we'll also refuse fetching when we're on a detached HEAD > (for example if we're rebasing on the branch in question or bisecting)."
No, I meant what I wrote. We don’t refuse the fetch if we’re on a detached HEAD for some other reason. That would be quite unhelpful.
Anders