From 65c81f93f41e53e39ab47a1afb57e4d136b47803 Mon Sep 17 00:00:00 2001 From: EscapeB Date: Fri, 1 Mar 2024 14:13:59 +0800 Subject: [PATCH] chore: apply cr suggestion --- apps/sparo-lib/src/cli/commands/pull.ts | 2 +- apps/sparo-lib/src/services/SparoProfileService.ts | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/sparo-lib/src/cli/commands/pull.ts b/apps/sparo-lib/src/cli/commands/pull.ts index 801f81e..cd16a09 100644 --- a/apps/sparo-lib/src/cli/commands/pull.ts +++ b/apps/sparo-lib/src/cli/commands/pull.ts @@ -17,7 +17,7 @@ export interface IPullCommandOptions { @Command() export class PullCommand implements ICommand { public cmd: string = 'pull [remote] [branch]'; - public description: string = 'pull changes from remote branch to local'; + public description: string = 'Incorporates changes from a remote repository into the current branch.'; @inject(GitService) private _gitService!: GitService; @inject(SparoProfileService) private _sparoProfileService!: SparoProfileService; diff --git a/apps/sparo-lib/src/services/SparoProfileService.ts b/apps/sparo-lib/src/services/SparoProfileService.ts index 9b717a0..d51219f 100644 --- a/apps/sparo-lib/src/services/SparoProfileService.ts +++ b/apps/sparo-lib/src/services/SparoProfileService.ts @@ -230,11 +230,6 @@ ${availableProfiles.join(',')} profiles?: Set; addProfiles?: Set; }): Promise { - /* - * 2. If profile array is specified, using `git sparse-checkout set` to set sparse checkout folders in profiles. - * 3. If add profiles is specified, using `git sparse-checkout add` to add folders in add profiles - */ - this._localState.reset(); this._terminalService.terminal.writeLine( `Syncing local sparse checkout state with following specified profiles:\n${Array.from([