Skip to content

Commit bdc4313

Browse files
author
Matthew Fisher
committed
fix(tests): check for "git "
Having "github" in the command such as with BUILDPACK_URL triggers this unintentional behaviour.
1 parent 70ae060 commit bdc4313

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/utils/itutils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func Execute(t *testing.T, cmd string, params interface{}, failFlag bool, expect
251251
cmdString := cmdBuf.String()
252252
fmt.Println(cmdString)
253253
var cmdl *exec.Cmd
254-
if strings.Contains(cmd, "git") {
254+
if strings.Contains(cmd, "git ") {
255255
cmdl = exec.Command("sh", "-c", cmdString)
256256
} else {
257257
cmdl = exec.Command("sh", "-c", Deis+cmdString)

0 commit comments

Comments
 (0)