summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony HAMON <hamon.anth@gmail.com>2018-09-06 23:40:35 +0200
committerAnthony HAMON <hamon.anth@gmail.com>2018-09-09 10:52:34 +0200
commit6076a756432fd1b41d4f1ed297a8a9cdd3570737 (patch)
tree9046fb913c1c9c74f85081299430935c20ebd0dd
parentb46e4b497610aaa771d709f3cab14652e48b8512 (diff)
commands/git : fix function call
-rw-r--r--pkg/commands/git_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/commands/git_test.go b/pkg/commands/git_test.go
index 7af75286d..7bc7a8910 100644
--- a/pkg/commands/git_test.go
+++ b/pkg/commands/git_test.go
@@ -549,7 +549,7 @@ func TestGitCommandUpstreamDifferentCount(t *testing.T) {
{
"Can't retrieve pushable count",
func(string, ...string) *exec.Cmd {
- return exec.Command("exit 1")
+ return exec.Command("exit", "1")
},
func(pushableCount string, pullableCount string) {
assert.EqualValues(t, "?", pushableCount)
@@ -560,7 +560,7 @@ func TestGitCommandUpstreamDifferentCount(t *testing.T) {
"Can't retrieve pullable count",
func(cmd string, args ...string) *exec.Cmd {
if args[1] == "head..@{u}" {
- return exec.Command("exit 1")
+ return exec.Command("exit", "1")
}
return exec.Command("echo")
@@ -606,7 +606,7 @@ func TestGitCommandGetCommitsToPush(t *testing.T) {
{
"Can't retrieve pushable commits",
func(string, ...string) *exec.Cmd {
- return exec.Command("exit 1")
+ return exec.Command("exit", "1")
},
func(pushables []string) {
assert.EqualValues(t, []string{}, pushables)