From: Anders Kaseorg Date: Tue, 09 Nov 2021 05:48:05 GMT Subject: Re: [PATCH v3 1/2] fetch: Protect branches checked out in all worktrees Message-ID: <503ee252-c733-ce8e-14ed-d4d1909682b8@mit.edu> In-Reply-To: On 11/8/21 21:19, Bagas Sanjaya wrote: > 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