diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-08 13:19:38 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-08 18:44:15 +1100 |
commit | 19146d61b1d16f93242d803652c1ed3c4dc24689 (patch) | |
tree | fc9105c7013fb04bb0b7dd705f608a55157646f5 /pkg/commands/git_test.go | |
parent | e541b809ce0c7062c46368082224716d90696993 (diff) |
use selected branch as base when creating a new branch
Diffstat (limited to 'pkg/commands/git_test.go')
-rw-r--r-- | pkg/commands/git_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/git_test.go b/pkg/commands/git_test.go index fabeb6375..779e31f68 100644 --- a/pkg/commands/git_test.go +++ b/pkg/commands/git_test.go @@ -636,12 +636,12 @@ func TestGitCommandNewBranch(t *testing.T) { gitCmd := NewDummyGitCommand() gitCmd.OSCommand.command = func(cmd string, args ...string) *exec.Cmd { assert.EqualValues(t, "git", cmd) - assert.EqualValues(t, []string{"checkout", "-b", "test"}, args) + assert.EqualValues(t, []string{"checkout", "-b", "test", "master"}, args) return exec.Command("echo") } - assert.NoError(t, gitCmd.NewBranch("test")) + assert.NoError(t, gitCmd.NewBranch("test", "master")) } // TestGitCommandDeleteBranch is a function. |