Skip to content

Commit 9530a56

Browse files
authored
Merge pull request #3708 from ActiveState/CP-1053
Fix `state commit --skip-validation` saying failed when it was a success
2 parents 7213913 + d0d0b2c commit 9530a56

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/runners/commit/commit.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,10 @@ func (c *Commit) Run(params *Params) (rerr error) {
141141
if err != nil {
142142
return errs.Wrap(err, "Could not update project to reflect build script changes.")
143143
}
144+
pg.Stop(locale.T("progress_success"))
145+
pg = nil
144146

145147
if !params.SkipValidation {
146-
pg.Stop(locale.T("progress_success"))
147-
pg = nil
148-
149148
pgSolve := output.StartSpinner(out, locale.T("progress_solve"), constants.TerminalAnimationInterval)
150149
defer func() {
151150
if pgSolve != nil {

0 commit comments

Comments
 (0)