From 04c6bc74bb603e3c564f0def698b33f94ee5aa62 Mon Sep 17 00:00:00 2001 From: Adrian Z <10289356+jzhang026@users.noreply.github.com> Date: Wed, 29 May 2024 09:18:10 +0800 Subject: [PATCH] fix: sparo pull need to track rush selectors also --- apps/sparo-lib/src/cli/commands/pull.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/sparo-lib/src/cli/commands/pull.ts b/apps/sparo-lib/src/cli/commands/pull.ts index 88c7122..3e2cc41 100644 --- a/apps/sparo-lib/src/cli/commands/pull.ts +++ b/apps/sparo-lib/src/cli/commands/pull.ts @@ -55,10 +55,11 @@ export class PullCommand implements ICommand { // Collect anything that is not related to profile, pass down them to native git pull const pullArgs: string[] = args._ as string[]; - const { isNoProfile, profiles, addProfiles } = await sparoProfileService.preprocessProfileArgs({ - profilesFromArg: args.profile ?? [], - addProfilesFromArg: [] - }); + const { isNoProfile, profiles, addProfiles, isProfileRestoreFromLocal } = + await sparoProfileService.preprocessProfileArgs({ + profilesFromArg: args.profile ?? [], + addProfilesFromArg: [] + }); const { remote } = args; if (remote) { @@ -93,7 +94,8 @@ export class PullCommand implements ICommand { // sync local sparse checkout state with given profiles. await this._sparoProfileService.syncProfileState({ profiles: isNoProfile ? undefined : profiles, - addProfiles + addProfiles, + isProfileRestoreFromLocal }); };