diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-29 11:41:33 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-04 09:07:15 +1100 |
commit | 03b946cc8f9e94fe3fd53ac619ace2af2662aac2 (patch) | |
tree | 14dff36f8b3874dda80dd606403a83c212084e6b /pkg/commands/files_test.go | |
parent | 18ab08612687b34ccfccd0b8d12d8d73e38b8857 (diff) |
no more config in git command struct
Diffstat (limited to 'pkg/commands/files_test.go')
-rw-r--r-- | pkg/commands/files_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/commands/files_test.go b/pkg/commands/files_test.go index 6965f82c2..4e7a077c7 100644 --- a/pkg/commands/files_test.go +++ b/pkg/commands/files_test.go @@ -435,7 +435,7 @@ func TestGitCommandDiff(t *testing.T) { t.Run(s.testName, func(t *testing.T) { gitCmd := NewDummyGitCommand() gitCmd.OSCommand.Command = s.command - gitCmd.Config.GetUserConfig().Git.DiffContextSize = s.contextSize + gitCmd.UserConfig.Git.DiffContextSize = s.contextSize gitCmd.WorktreeFileDiff(s.file, s.plain, s.cached, s.ignoreWhitespace) }) } @@ -488,7 +488,7 @@ func TestGitCommandShowFileDiff(t *testing.T) { t.Run(s.testName, func(t *testing.T) { gitCmd := NewDummyGitCommand() gitCmd.OSCommand.Command = s.command - gitCmd.Config.GetUserConfig().Git.DiffContextSize = s.contextSize + gitCmd.UserConfig.Git.DiffContextSize = s.contextSize _, _ = gitCmd.ShowFileDiff(s.from, s.to, s.reverse, "test.txt", s.plain) }) } @@ -946,8 +946,8 @@ func TestEditFileCmdStr(t *testing.T) { } for _, s := range scenarios { - gitCmd.Config.GetUserConfig().OS.EditCommand = s.configEditCommand - gitCmd.Config.GetUserConfig().OS.EditCommandTemplate = s.configEditCommandTemplate + gitCmd.UserConfig.OS.EditCommand = s.configEditCommand + gitCmd.UserConfig.OS.EditCommandTemplate = s.configEditCommandTemplate gitCmd.OSCommand.Command = s.command gitCmd.OSCommand.Getenv = s.getenv gitCmd.GitConfig = git_config.NewFakeGitConfig(s.gitConfigMockResponses) |