-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
Describe the bug
Whenever I press 'e' on a commit all the above commit disappear making it impossible to rebase.
I tried with the default config, on a repo started with 'git init'.
log says "Jun 26 21:44:24 |ERRO| fatal: HEAD does not point to a branch"
To Reproduce
Steps to reproduce the behavior:
- Go to the commit section
- Click on 'e' to start rebasing
- All the above commit disappear so I can't pick, squash etc
Expected behavior
The commits above the rebasing point should turn blue and let me interact with them.
Screenshots
before pressing 'e'
after pressing 'e'
Version info:
lazygit version : 0.38.2 git version : 2.25.1
lazygit --version =>
commit=5149b24ab3dfad3860e2300519c7c583dcc8c9ff, build date=2023-05-03T08:00:22Z, build source=binaryRelease, version=0.38.2, os=linux, arch=amd64, git version=2.25.1
git --version =>
git version 2.25.1
Log after pressing 'e'
Jun 26 21:44:24 |INFO| RunCommand command="Beginning interactive rebase at 'bff05f343079b795d19658d1d2303b9a259cfbb8'"
Jun 26 21:44:24 |DEBU| RunCommand command="git rebase --interactive --autostash --keep-empty --no-autosquash --rebase-merges bff05f343079b795d19658d1d2303b9a259cfbb8"
Jun 26 21:44:24 |DEBU| RunCommand
Jun 26 21:44:24 |INFO| language: en
Jun 26 21:44:24 |INFO| Lazygit invoked as interactive rebase demon
Jun 26 21:44:24 |INFO| args: [/usr/local/bin/lazygit /home/anon/Documents/Code/testLazygit/.git/rebase-merge/git-rebase-todo]
Jun 26 21:44:24 |INFO| refreshing all scopes in async mode
Jun 26 21:44:24 |DEBU| RunCommand command="git stash list -z --pretty='%gs'"
Jun 26 21:44:24 |DEBU| RunCommand command="git tag --list -n --sort=-creatordate"
Jun 26 21:44:24 |DEBU| using cache for key status.showUntrackedFiles
Jun 26 21:44:24 |DEBU| RunCommand command="git status --untracked-files=all --porcelain -z"
Jun 26 21:44:24 |DEBU| RunCommand command="git branch -r"
Jun 26 21:44:24 |DEBU| RunCommand command="git merge-base "HEAD" "HEAD"@{u}"
Jun 26 21:44:24 |ERRO| fatal: HEAD does not point to a branch
Jun 26 21:44:24 |DEBU| RunCommand command="git for-each-ref --sort=-committerdate --format="%(HEAD)%00%(refname:short)%00%(upstream:short)%00%(upstream:track)" refs/heads"
Jun 26 21:44:24 |DEBU| RunCommand command="git symbolic-ref --short HEAD"
Jun 26 21:44:24 |DEBU| RunCommand
Jun 26 21:44:24 |ERRO| fatal: ref HEAD is not a symbolic ref
Jun 26 21:44:24 |ERRO| fatal: ref HEAD is not a symbolic ref
Jun 26 21:44:24 |DEBU| RunCommand command="git branch --points-at=HEAD --format="%(HEAD)%00%(objectname)%00%(refname)""
Jun 26 21:44:24 |DEBU| RunCommand
Jun 26 21:44:24 |DEBU| RunCommand command="git merge-base "HEAD" "master""
Jun 26 21:44:24 |DEBU| RunCommand command="git show --submodule --color=always --unified=3 --stat -p f8704c251a5d40afab8a46bed1f91b50e9afae66"