-
Notifications
You must be signed in to change notification settings - Fork 156
built-in rebase --autostash: fix regression #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
An unnamed colleague of Ævar Arnfjörð Bjarmason reported a breakage where a `pull --rebase` (which did not really need to do anything but stash, see that nothing was changed, and apply the stash again) also detached the HEAD. This patch adds a minimal reproducer for this regression. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When we converted a `git reset --hard` call in the original Unix shell script to built-in code, we asked to reset the worktree and the index and explicitly *not* to detach the HEAD. By mistake, though, we still did. Let's fix this. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
/submit |
Submitted as pull.70.git.gitgitgadget@gmail.com |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This branch is now known as |
This patch series was integrated into pu via git@9aefd35. |
This branch is now known as |
This patch series was integrated into pu via git@9aefd35. |
This patch series was integrated into next via git@9aefd35. |
This patch series was integrated into master via git@9aefd35. |
This patch series was integrated into maint via git@9aefd35. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Closed via 9aefd35. |
It was reported that the new, shiny built-in
git rebase
has a bug where it would detach the HEAD when it was not even necessary to detach it.Keeping with my fine tradition to first demonstrate what is the actual problem (and making it easy to verify my claim), this patch series first introduces the regression test, and then the (quite simple) fix.
AEvar, sorry for the ASCII-fication of your name, I still did not find the time to look at the GitGitGadget bug closely where it does the wrong thing when Cc:ing with non-ASCII names.
Cc: AEvar avarab@gmail.com, Pratik Karki predatoramigo@gmail.com, Jeff King peff@peff.net