hotfix: git fetch in the correct directory

This commit is contained in:
Nicolas Meienberger 2023-09-01 00:16:37 +02:00
parent 238a791a77
commit 8e337ad337

View file

@ -93,7 +93,7 @@ export class RepoExecutors {
});
// 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.error(`stderr: ${stderr}`);
this.logger.info(`stdout: ${stdout}`);