Skip to content

Commit 5113200

Browse files
committed
rm not needed sleep2
1 parent 77186bb commit 5113200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/docker/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func BuildDockerImageFromGitRepo(host *models.Host, image string, gitRepo string
8686
}
8787
}()
8888
// clone the repo and checkout commit
89-
if _, err := host.Command(fmt.Sprintf("git clone %s %s && cd %s && git checkout %s && sleep 2", gitRepo, tmpDir, tmpDir, commit), nil, constants.SSHLongRunningScriptTimeout); err != nil {
89+
if _, err := host.Command(fmt.Sprintf("git clone %s %s && cd %s && git checkout %s", gitRepo, tmpDir, tmpDir, commit), nil, constants.SSHLongRunningScriptTimeout); err != nil {
9090
return err
9191
}
9292
// build the image

0 commit comments

Comments
 (0)