From e921ba0910c2431c26ffcbdf3847734e1283dded Mon Sep 17 00:00:00 2001 From: Jasper Mendiola Date: Fri, 10 Jul 2020 16:48:55 +0800 Subject: Remove getLocalGitConfig --- pkg/commands/git_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/commands/git_test.go b/pkg/commands/git_test.go index 8d56dee40..9b34ba364 100644 --- a/pkg/commands/git_test.go +++ b/pkg/commands/git_test.go @@ -1384,9 +1384,6 @@ func TestGitCommandCheckout(t *testing.T) { // TestGitCommandGetBranchGraph is a function. func TestGitCommandGetBranchGraph(t *testing.T) { gitCmd := NewDummyGitCommand() - gitCmd.getLocalGitConfig = func(string) (string, error) { - return "git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium {{branchName}} --", nil - } gitCmd.OSCommand.command = func(cmd string, args ...string) *exec.Cmd { assert.EqualValues(t, "git", cmd) assert.EqualValues(t, []string{"log", "--graph", "--color=always", "--abbrev-commit", "--decorate", "--date=relative", "--pretty=medium", "test", "--"}, args) -- cgit v1.2.3