Skip to content

Amending merge commit results in merge conflicts #2160

@OliverJAsh

Description

@OliverJAsh

Describe the bug
Amending merge commit results in merge conflicts.

To Reproduce
Try to amend a merge commit by making changes then selecting merge commit in the commits panel and using the keyboard shortcut A

Expected behavior
The amend is successful without merge conflicts, seeing as the merge conflicts were already handled when the original merge commit was made.

Screenshots
Example using this repo where the latest commit is a merge commit: https://github.com/OliverJAsh/lazygit-amend-merge-test

Screen.Recording.2022-09-08.at.19.35.13.mov

Version info:

$ lazygit --version
commit=, build date=, build source=homebrew, version=0.35, os=darwin, arch=arm64

$ git --version
git version 2.37.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions