-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I tried to drop merge commit. And I see error message:
Todo 0b698733598bb407c83e116eacd7abb24ac1cbff not found in git-rebase-todo.
error: There was a problem with the editor /opt/homebrew/bin/lazygit
To Reproduce
Steps to reproduce the behavior:
- Take any git repo.
- Make some commits in main and feature branches.
- Make merge main branch into feature branch.
- Try to delete merge commit.
- See error
Expected behavior
Commit should be dropped.
Version info:
Run lazygit --version
and paste the result here
commit=, build date=, build source=homebrew, version=0.40.2, os=darwin, arch=arm64, git version=2.43.0
Run git --version
and paste the result here
git version 2.43.0
Additional context
The reason is EditRebaseTodo
tries to find pick
command instead of merge
.
This is git-rebase-todo
:
reset 05c3ae7 # message 1
pick c232d36 message 2
merge -C 84da9cb onto # Merge branch 'master' into feature
The latest command is merge
while we try to find pick
command to drop it.
janglad
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working