Ver Fonte

hotfix: git fetch in the correct directory

Nicolas Meienberger há 1 ano atrás
pai
commit
bcda2fd203
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/cli/src/executors/repo/repo.executors.ts

+ 1 - 1
packages/cli/src/executors/repo/repo.executors.ts

@@ -93,7 +93,7 @@ export class RepoExecutors {
       });
       });
 
 
       // reset hard
       // reset hard
-      await execAsync(`git fetch origin && git -C ${repoPath} reset --hard origin/${currentBranch}`).then(({ stdout, stderr }) => {
+      await execAsync(`git -C ${repoPath} fetch origin && git -C ${repoPath} reset --hard origin/${currentBranch}`).then(({ stdout, stderr }) => {
         this.logger.info(`------------------ git -C ${repoPath} reset --hard ------------------`);
         this.logger.info(`------------------ git -C ${repoPath} reset --hard ------------------`);
         this.logger.error(`stderr: ${stderr}`);
         this.logger.error(`stderr: ${stderr}`);
         this.logger.info(`stdout: ${stdout}`);
         this.logger.info(`stdout: ${stdout}`);