Skip to content

Commit

Permalink
fix: actually backwards-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiand391 committed Aug 30, 2024
1 parent 3650a07 commit 6af460a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/shared/local/localShadowRepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ type CommitRequest = {

/** do not try to add more than this many files at a time through isogit. You'll hit EMFILE: too many open files even with graceful-fs */

const MAX_FILE_ADD = envVars.getNumber(
'SF_SOURCE_TRACKING_BATCH_SIZE',
envVars.getNumber('SF_SOURCE_TRACKING_BATCH_SIZE', IS_WINDOWS ? 8000 : 15_000)
);
const MAX_FILE_ADD = envVars.getNumber('SFDX_SOURCE_TRACKING_BATCH_SIZE', IS_WINDOWS ? 8000 : 15_000);

export class ShadowRepo {
private static instanceMap = new Map<string, ShadowRepo>();
Expand Down
4 changes: 2 additions & 2 deletions src/shared/remoteSourceTrackingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ export class RemoteSourceTrackingService {
* @param pollingTimeout maximum amount of time in seconds to poll for SourceMembers
*/
public async pollForSourceTracking(expectedMembers: RemoteSyncInput[]): Promise<void> {
if (envVars.getBoolean('SF_DISABLE_SOURCE_MEMBER_POLLING', false)) {
this.logger.warn('Not polling for SourceMembers since SFDX_DISABLE_SOURCE_MEMBER_POLLING = true.');
if (envVars.getBoolean('SFDX_DISABLE_SOURCE_MEMBER_POLLING', false)) {
this.logger.warn('Not polling for SourceMembers since SF_DISABLE_SOURCE_MEMBER_POLLING = true.');
return;
}

Expand Down

0 comments on commit 6af460a

Please sign in to comment.