Skip to content

Unnecessary root level in changed files tree view #4531

@KnapSac

Description

@KnapSac

Describe the bug
If there is more than 1 root folder in the repository with changes, you now get an additional root level in the tree.

To Reproduce

mkdir repro
cd repro
mkdir a
touch a/a.txt
mkdir b
touch b/b.txt
lazygit

Expected behavior
The additional / root level doesn't show up, as was the case before (at least in 0.48, I skipped 0.49 and upgraded straigth to 0.50).

Screenshots
Image

Version info:
commit=66caa25dcd4c247589e6adc71a6bc088678f3212, build date=2025-05-03T02:30:12Z, build source=binaryRelease, version=0.50.0, os=windows, arch=amd64, git version=2.49.0.windows.1
git version 2.49.0.windows.1

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