Re: BUG: Renaming a branch checked out in a different work tree
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Mar 29, 2017, 18:40 UTC
- Message-ID
- <20170329184018.GV31294@aiede.mtv.corp.google.com>
- In-Reply-To
- <CALA94fPqm5UnYBwqZ5fDJ=DL_9EaZeRfqHB5ZzUQt11FSz4ZMA@mail.gmail.com>
(+cc: Kazuki Yamaguchi --- thanks for writing the fix!) Hi Eyal,
Eyal Lotem wrote:
Show 8 quoted lines
> git version: 2.7.4 > installed from Ubuntu repos: > Ubuntu Version: 1:2.7.4-0ubuntu1 > > When renaming a branch checked out in a different work tree, that work > tree's state is corrupted. Git status in that work tree then reports > itself being on the "initial commit" with all files being in the > staging area.
I believe this is fixed by v2.8.3~42^2~1 (branch -m: update all per-worktree HEADs, 2016-03-27).
Thanks and hope that helps, Jonathan