Skip to content

Conversation

@workbysaran
Copy link
Contributor

Resolved / Related Issues
Fixed an issue where switching git branches during an active merge conflict caused a crash due to attempting to stash unmerged changes.

Closes #16934

Steps used to test these changes

  1. Create a merge conflict in a git repository
  2. Attempt to switch branches while the merge conflict is active
  3. Verify the new dialog appears with options to "Abort merge and switch" or "Stay and resolve conflicts"
  4. Test both options work correctly
  5. Verify normal branch switching and still works as expected

@yaira2 yaira2 added the ready for review Pull requests that are ready for review label Nov 23, 2025
@yaira2 yaira2 force-pushed the sg/fix-git-crash-switch-merge-conflict branch from 39db459 to d60b268 Compare December 2, 2025 20:37
yaira2
yaira2 previously approved these changes Dec 2, 2025
workbysaran and others added 2 commits December 3, 2025 11:20
Co-authored-by: Yair <39923744+yaira2@users.noreply.github.com>
Signed-off-by: Saravanan G <workbysaran@gmail.com>
Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed ready for review Pull requests that are ready for review labels Dec 3, 2025
@yaira2 yaira2 merged commit ddeb2ff into files-community:main Dec 3, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Files crashes when switching git branch during a merge conflict

2 participants