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 }; }