FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

git_rebase_init: correctly handle detached HEAD by novalis · Pull Request #4020 · libgit2/libgit2 · GitHub

Repository navigation

git_rebase_init: correctly handle detached HEAD - #4020

Merged
ethomson merged 1 commit into
libgit2:masterfrom
novalis:rebase-detached
Dec 7, 2016
Merged

ethomson merged 1 commit into
libgit2:masterfrom
novalis:rebase-detached

Conversation

novalis commented Dec 2, 2016

Copy link
Copy Markdown
Contributor

git_rebase_finish relies on head_detached being set, but rebase_init_merge was only setting it when branch->ref_name was unset. But branch->ref_name would be set to "HEAD" in the case of detached
HEAD being either implicitly (NULL) or explicitly passed to git_rebase_init.

git_rebase_finish relies on head_detached being set, but
rebase_init_merge was only setting it when branch->ref_name was unset.
But branch->ref_name would be set to "HEAD" in the case of detached
HEAD being either implicitly (NULL) or explicitly passed to
git_rebase_init.

ethomson commented Dec 7, 2016

Copy link
Copy Markdown
Member

Thanks!

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL