fix(be): err check

This commit is contained in:
Denis Gukov 2022-01-30 16:29:33 +05:00
parent 88f4603028
commit 3e559cccb4

View File

@ -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)