Skip to content

Commit

Permalink
fix(diff): fix incorrect argument in diff calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Jan 9, 2024
1 parent 0482157 commit 63ad7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sfp-cli/src/core/package/diff/PackageDiffImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 63ad7e4

Please sign in to comment.