1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Store Common instead of just the list of configured main branches in MainBranches

This will make it possible to change the configured main branches at runtime.
We'll support this in the next commit.
This commit is contained in:
Stefan Haller
2024-07-30 19:29:03 +02:00
parent aef8e71b82
commit 3d6d677453
3 changed files with 15 additions and 14 deletions

View File

@ -324,7 +324,7 @@ func TestGetCommits(t *testing.T) {
common.UserConfig().Git.MainBranches = scenario.mainBranches
opts := scenario.opts
opts.MainBranches = NewMainBranches(scenario.mainBranches, cmd)
opts.MainBranches = NewMainBranches(common, cmd)
commits, err := builder.GetCommits(opts)
assert.Equal(t, scenario.expectedCommits, commits)