summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-12-29 12:03:35 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-04 09:07:15 +1100
commit192a548c9957807d9d5c9c4700dffe02c1f55f03 (patch)
tree7627ded8fc1fccfcb2442cbfaf8009eb55e2c07f /pkg/commands
parent01ea5813a8e3b8e914332002e744e3328f55f6cd (diff)
refactoring the config struct
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/git.go2
-rw-r--r--pkg/commands/git_test.go5
2 files changed, 1 insertions, 6 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index cdccfc29c..dd3879b82 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -15,7 +15,6 @@ import (
"github.com/jesseduffield/lazygit/pkg/commands/oscommands"
"github.com/jesseduffield/lazygit/pkg/commands/patch"
"github.com/jesseduffield/lazygit/pkg/common"
- "github.com/jesseduffield/lazygit/pkg/config"
"github.com/jesseduffield/lazygit/pkg/env"
"github.com/jesseduffield/lazygit/pkg/utils"
)
@@ -49,7 +48,6 @@ type GitCommand struct {
func NewGitCommand(
cmn *common.Common,
osCommand *oscommands.OSCommand,
- config config.AppConfigurer,
gitConfig git_config.IGitConfig,
) (*GitCommand, error) {
var repo *gogit.Repository
diff --git a/pkg/commands/git_test.go b/pkg/commands/git_test.go
index 19eabd583..b730bf6dc 100644
--- a/pkg/commands/git_test.go
+++ b/pkg/commands/git_test.go
@@ -10,8 +10,6 @@ import (
gogit "github.com/jesseduffield/go-git/v5"
"github.com/jesseduffield/lazygit/pkg/commands/git_config"
"github.com/jesseduffield/lazygit/pkg/commands/oscommands"
- "github.com/jesseduffield/lazygit/pkg/config"
- "github.com/jesseduffield/lazygit/pkg/i18n"
"github.com/jesseduffield/lazygit/pkg/utils"
"github.com/stretchr/testify/assert"
)
@@ -210,8 +208,7 @@ func TestNewGitCommand(t *testing.T) {
for _, s := range scenarios {
t.Run(s.testName, func(t *testing.T) {
s.setup()
- newAppConfig := config.NewDummyAppConfig()
- s.test(NewGitCommand(utils.NewDummyLog(), oscommands.NewDummyOSCommand(), i18n.NewTranslationSet(utils.NewDummyLog(), newAppConfig.GetUserConfig().Gui.Language), newAppConfig, git_config.NewFakeGitConfig(nil)))
+ s.test(NewGitCommand(utils.NewDummyCommon(), oscommands.NewDummyOSCommand(), git_config.NewFakeGitConfig(nil)))
})
}
}