diff options
Diffstat (limited to 'pkg/commands/git_commands/deps_test.go')
-rw-r--r-- | pkg/commands/git_commands/deps_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/commands/git_commands/deps_test.go b/pkg/commands/git_commands/deps_test.go index f0d7a2a7b..186ce1d87 100644 --- a/pkg/commands/git_commands/deps_test.go +++ b/pkg/commands/git_commands/deps_test.go @@ -2,6 +2,7 @@ package git_commands import ( "github.com/go-errors/errors" + gogit "github.com/jesseduffield/go-git/v5" "github.com/jesseduffield/lazygit/pkg/commands/git_config" "github.com/jesseduffield/lazygit/pkg/commands/loaders" "github.com/jesseduffield/lazygit/pkg/commands/oscommands" @@ -61,7 +62,10 @@ func buildConfigCommands(deps commonDeps) *ConfigCommands { deps = completeDeps(deps) common := utils.NewDummyCommonWithUserConfig(deps.userConfig) - return NewConfigCommands(common, deps.gitConfig) + // TODO: think of a way to actually mock this outnil + var repo *gogit.Repository = nil + + return NewConfigCommands(common, deps.gitConfig, repo) } func buildOSCommand(deps commonDeps) *oscommands.OSCommand { |