Re: Undocumented change in `git branch -M` behavior
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Aug 24, 2017, 08:59 UTC
- Message-ID
- <CACsJy8C=D_MHRJHdbqjZHBvr-Xs_VXxzRU_KenpWrvX1Nb_iyw@mail.gmail.com>
- In-Reply-To
- <20170823201334.bz42s6t5ti4jdaqm@pitfall>
On Thu, Aug 24, 2017 at 3:13 AM, Nish Aravamudan <nish.aravamudan@canonical.com> wrote:
Show 6 quoted lines
> Hello, > > Hopefully, I've got this right -- I noticed a change in behavior in git > with Ubuntu 17.10, which recently got 2.14.1. Specifically, that when in > an orphaned branch, -M ends up moving HEAD to the new branch name, > clobbering the working tree.
Thanks for the report. I think I see what's going on. I need some more time to come up with a patch but yes this is definitely a bug (and caused by my commit)
-- Duy