Skip to content

Conversation

dscho
Copy link
Member

@dscho dscho commented Nov 7, 2018

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

dscho added 2 commits November 7, 2018 14:46
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>
@dscho
Copy link
Member Author

dscho commented Nov 7, 2018

/submit

@gitgitgadget
Copy link

gitgitgadget bot commented Nov 7, 2018

Submitted as pull.70.git.gitgitgadget@gmail.com

This comment has been minimized.

This comment has been minimized.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 14, 2018

This branch is now known as js/rebase-autostash-detach-fix.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 14, 2018

This patch series was integrated into pu via git@9aefd35.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 15, 2018

This branch is now known as js/rebase-autostash-detach-fix.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 15, 2018

This patch series was integrated into pu via git@9aefd35.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 15, 2018

This patch series was integrated into next via git@9aefd35.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 15, 2018

This patch series was integrated into master via git@9aefd35.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 15, 2018

This patch series was integrated into maint via git@9aefd35.

@gitgitgadget

This comment has been minimized.

@gitgitgadget

This comment has been minimized.

@gitgitgadget
Copy link

gitgitgadget bot commented Dec 15, 2018

Closed via 9aefd35.

@dscho dscho deleted the fix-built-in-rebase-autostash branch December 15, 2018 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant