We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
state pull
1 parent c10ecc4 commit fdb87b0Copy full SHA for fdb87b0
1 file changed
internal/runners/pull/pull.go
@@ -278,12 +278,10 @@ func (p *Pull) mergeBuildScript(remoteCommit, localCommit strfmt.UUID) error {
278
// Compute the merge strategy.
279
strategies, err := model.MergeCommit(remoteCommit, localCommit)
280
if err != nil {
281
- switch {
282
- case errors.Is(err, model.ErrMergeFastForward):
+ if errors.Is(err, model.ErrMergeFastForward) || errors.Is(err, model.ErrMergeCommitInHistory) {
283
return buildscript_runbit.Update(p.project, scriptB)
284
- case !errors.Is(err, model.ErrMergeCommitInHistory):
285
- return locale.WrapError(err, "err_mergecommit", "Could not detect if merge is necessary.")
286
}
+ return locale.WrapError(err, "err_mergecommit", "Could not detect if merge is necessary.")
287
288
289
// Attempt the merge.
0 commit comments