-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Describe the bug
Tab [4] Commits shows commits duplicated, duplicate lines are not accessible by the cursor. for example, this happens after the branch switching
Note: it might be not a duplication but just not erased lines in tab [4] after topic branch containing more commits than master.
To Reproduce
Setup example repos on local filesystem: aaa and bbb. aaa contains just master branch with two commits, then clone this repo to bbb where you add a topic branch with another commits. topic branch is active when you start lazygit. Then, in lazygit, switch to the master branch in tab [3] and tab [4] shows master commits twice.
If you switch to tab [4], your cursor can move between two upper lines/commits, those duplicates are not accessible by cursor.
exactly, step by step:
$ mkdir -p lazyissue/aaa && cd lazyissue/aaa
$ git init
$ echo "first file" > file_a && git add file_a && git commit -m "master c1"
$ echo "second file" > file_b && git add file_b && git commit -m "master c2"
$ cd ..
$ git clone aaa bbb && cd bbb
$ git checkout -b topic_1
$ echo "topic modification A" >>file_a && git add file_a && git commit -m "topic c1"
$ echo "topic modification B" >>file_b && git add file_b && git commit -m "topic c2"
$ lazygit # in lazygit, press "3" to move to the branches tab and switch to master branch, check what appears in tab [4]
Expected behavior
Correct branch history shown in tab [4] after branch is switched.
Version info:
commit=71ad3fac63a3ef3326021837b49e9497d332818b, build date=2024-07-13T10:24:19Z, build source=binaryRelease, version=0.43.1, os=linux, arch=amd64, git version=2.39.2
Additional context
running on Debian 12, x86_64, usual packages from the main repo, no additional SW other then lazygit, no containers etc.

