From ace330ba2cf74bd3b98013a01a037f48ff611a2b Mon Sep 17 00:00:00 2001 From: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> Date: Thu, 21 Jul 2022 12:25:15 +0200 Subject: [PATCH] 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 --- extensions/git/src/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index c2e7ae8f46f..560734f6316 100644 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -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 }; }