Skip to content

Aborting a new merge doesn't update the changed files list #6052

Closed

Description

@joshaber

Description

After aborting a merge, the status doesn't update. I continue to see all the conflicted files, etc. If I check git status on the command line, it reflects that I aborted the merge. If I switch away from the app and back, the changed files updates as I'd expect.

Version

  • GitHub Desktop: 1.5.0-beta2
  • Operating system: macOS 10.13.6

Steps to Reproduce

  1. Merge two branches that introduce a conflict.
  2. Abort the merge using the ✨ fancy new dialog ✨

Expected Behavior

  1. All the changed files and conflicts are gone.

Actual Behavior

  1. I still see the changed files and conflicts.

Activity

  1. added
    investigation-needed
    on Oct 31, 2018
  2. added this to the 1.5.0 milestone on Oct 31, 2018
  3. shiftkey commented on Oct 31, 2018

    @shiftkey
    Member

    If I switch away from the app and back, the changed files updates as I'd expect.

    This one might be the key to the issue - could just require refreshing the changes tab after dismissing the dialog.

  4. outofambit commented on Oct 31, 2018

    @outofambit
    Contributor

    @shiftkey i bet that's it!

    this.props.dispatcher.changeRepositorySection(
    this.props.repository,
    RepositorySectionTab.Changes
    )
    would cover cases where the user started from the compare tab, but not from the changes tab.

  5. shiftkey commented on Oct 31, 2018

    @shiftkey
    Member

    Yep, I've got a consistent repro now:

    1. From the changes tab, select "Merge into Current branch"
    2. Choose a branch that will cause conflicts
    3. Continue and see the merge conflicts list
    4. Abort the merge

    Expected: no changes in list
    Actual: files remain

  6. added
    bug
    priority-2
    and removed
    investigation-needed
    on Oct 31, 2018
  7. shiftkey commented on Oct 31, 2018

    @shiftkey
    Member

    Marking as priority-2 because I believe it's a common flow, and potentially very confusing. PR incoming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpriority-2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions