From 63ad7e4e3759a71e2a1f91a850159fbc88ec9d64 Mon Sep 17 00:00:00 2001 From: azlam-abdulsalam Date: Tue, 9 Jan 2024 21:22:16 +1100 Subject: [PATCH] fix(diff): fix incorrect argument in diff calculation --- packages/sfp-cli/src/core/package/diff/PackageDiffImpl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sfp-cli/src/core/package/diff/PackageDiffImpl.ts b/packages/sfp-cli/src/core/package/diff/PackageDiffImpl.ts index 365f3ba71..88750936b 100644 --- a/packages/sfp-cli/src/core/package/diff/PackageDiffImpl.ts +++ b/packages/sfp-cli/src/core/package/diff/PackageDiffImpl.ts @@ -112,7 +112,7 @@ export default class PackageDiffImpl { if(this.diffOptions?.useBranchCompare) { const mergeBase = await git.raw(['merge-base', this.diffOptions.branch, this.diffOptions.baseBranch]); - let modified_files = await git.diff(['--name-only', this.diffOptions.branch,, mergeBase.trim()]); + let modified_files = await git.diff(['--name-only', this.diffOptions.branch, mergeBase.trim()]); // Check whether the package has been modified for (let filename of modified_files) {