mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
Show repository url in log
This commit is contained in:
parent
e312f272e2
commit
df9ef6e3d1
@ -226,12 +226,12 @@ func (t *task) updateRepository() error {
|
||||
}
|
||||
|
||||
if err != nil && os.IsNotExist(err) {
|
||||
t.log("Cloning repository")
|
||||
t.log("Cloning repository " + t.repository.GitUrl)
|
||||
cmd.Args = append(cmd.Args, "clone", t.repository.GitUrl, repoName)
|
||||
} else if err != nil {
|
||||
return err
|
||||
} else {
|
||||
t.log("Updating repository")
|
||||
t.log("Updating repository " + t.repository.GitUrl)
|
||||
cmd.Dir += "/" + repoName
|
||||
cmd.Args = append(cmd.Args, "pull", "origin", "master")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user