mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
fix(be): err check
This commit is contained in:
parent
88f4603028
commit
3e559cccb4
@ -458,6 +458,10 @@ func (t *TaskRunner) checkoutRepository() error {
|
||||
|
||||
err := repo.ValidateRepo()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if t.task.CommitHash != nil {
|
||||
// checkout to commit if it is provided for TaskRunner
|
||||
return repo.Checkout(*t.task.CommitHash)
|
||||
|
Loading…
Reference in New Issue
Block a user