1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-09 09:22:48 +03:00

Fix crash when viewing the divergence of a branch which is up to date with its upstream

This was introduced by #3838, specifically by commit e675025411.

Add a regression test that would have crashed without the fix.
This commit is contained in:
Stefan Haller
2024-09-16 20:50:31 +02:00
parent 4dadcd2ace
commit f8073c7188
3 changed files with 39 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ var tests = []*components.IntegrationTest{
branch.SetUpstream,
branch.ShowDivergenceFromBaseBranch,
branch.ShowDivergenceFromUpstream,
branch.ShowDivergenceFromUpstreamNoDivergence,
branch.SortLocalBranches,
branch.SortRemoteBranches,
branch.SquashMerge,