|
|
|
@@ -264,12 +264,11 @@ func downloadCode(repo *models.Repository, codePath string) error { |
|
|
|
command := "git clone " + repo.CloneLink().HTTPS + " " + codePath |
|
|
|
cmd := exec.Command("/bin/bash", "-c", command) |
|
|
|
output, err := cmd.Output() |
|
|
|
log.Info(string(output)) |
|
|
|
if err != nil { |
|
|
|
log.Error("exec.Command failed:%v", err) |
|
|
|
log.Error("exec.Command(%s) failed:%v", command, err) |
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
log.Info(string(output)) |
|
|
|
|
|
|
|
return nil |
|
|
|
} |