Skip to content

Commit

Permalink
fix: return error when cherry-pick fails for gitops env repo
Browse files Browse the repository at this point in the history
  • Loading branch information
hferentschik committed Oct 10, 2019
1 parent 7cf5fb9 commit 379f05c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gits/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ func ForkAndPullRepo(gitURL string, dir string, baseRef string, branchName strin
return "", "", nil, nil, errors.Wrapf(err, "running git reset --hard")
}
} else {
log.Logger().Warnf(errors.Wrapf(err, "Unable to cherry-pick %s", util.ColorWarning(c.SHA)).Error())
return "", "", nil, nil, errors.Wrapf(err, "Unable to cherry-pick %s", util.ColorWarning(c.SHA))
}
} else {
log.Logger().Infof(" Cherry-picked %s", c.OneLine())
Expand Down

0 comments on commit 379f05c

Please sign in to comment.