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:
@ -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)
|
||||
|
Reference in New Issue
Block a user