Skip to content

Repository.mergeBranches leaves HEAD with a dirty index after the merge#1271

Open
rcjsuen wants to merge 1 commit intonodegit:masterfrom
rcjsuen:mergeBranches
Open

Repository.mergeBranches leaves HEAD with a dirty index after the merge#1271
rcjsuen wants to merge 1 commit intonodegit:masterfrom
rcjsuen:mergeBranches

Conversation

@rcjsuen
Copy link
Member

@rcjsuen rcjsuen commented Apr 12, 2017

So for whatever reasons, creating a commit off of the written index doesn't seem to wipe the index clean of its changes. While I don't think the proposed change is really the best way to fix #1217, it does get the index into a clean state.

Force a complete checkout to wipe the index of any staged changes.
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.

Repository.mergeBranches creates dirty index after a non-conflicting merge

1 participant