no message

This commit is contained in:
pujielan 2018-01-04 14:04:16 +08:00
parent f61eed20a7
commit d34b69f9dd

View File

@ -162,8 +162,8 @@ func clone(gitURL string, sourceDir string, logger event.Logger, repo string) er
return err
}
}
logrus.Debugf("pull: %s", fmt.Sprintf("cd %s & git pull", sourceDir))
mm := []string{"-P", "cd", sourceDir, "&", "git", "pull"}
logrus.Debugf("pull: %s", fmt.Sprintf("cd %s & sudo -P git pull", sourceDir))
mm := []string{"-P", "cd", sourceDir, "&", "sudo", "-P", "git", "pull"}
if err := ShowExec("sudo", mm, logger); err != nil {
return err
}