Skip to content

Commit

Permalink
Merge branch 'migrate-sf-plugin' into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Sep 22, 2024
2 parents 26e020e + 0341591 commit 5a170bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/utils/deployUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ export async function forceSourcePull(scratchOrgAlias: string, debug = false) {
});
}

// If there are SharingRules, retrieve all of them to avoid the previous one are deleted (SF Cli strange/buggy behaviour)
// If there are SharingRules, retrieve all of them to avoid the previous one are deleted (SF Cli strange/buggy behavior)
if (pullCommandResult?.stdout?.includes("SharingRules")) {
uxLog(this, c.yellow('Detected Sharing Rules in the pull: rerieving the whole of them to avoid silly overrides !'));
uxLog(this, c.yellow('Detected Sharing Rules in the pull: retrieving the whole of them to avoid silly overrides !'));
const sharingRulesNamesMatches = [...pullCommandResult.stdout.matchAll(/([^ \\/]+)\.sharingRules-meta\.xml/gm)];
for (const match of sharingRulesNamesMatches) {
uxLog(this, c.grey(`Retrieve the whole ${match[1]} SharingRules...`));
Expand Down

0 comments on commit 5a170bf

Please sign in to comment.