SCM - Fixed a regression due to which post-commit commands were not being executed (#155824)

Fixed a regression due to which post-commit commands were not being executed
This commit is contained in:
Ladislau Szomoru
2022-07-21 12:25:15 +02:00
committed by GitHub
parent 924dde5c1e
commit ace330ba2c

View File

@@ -1524,7 +1524,7 @@ export class CommandCenter {
}
if (opts.all === undefined) {
opts = { all: noStagedChanges };
opts = { ...opts, all: noStagedChanges };
} else if (!opts.all && noStagedChanges && !opts.empty) {
opts = { ...opts, all: true };
}