Skip to content

Commit

Permalink
fix(version): update code even if version dir exist
Browse files Browse the repository at this point in the history
  • Loading branch information
shaw committed Nov 26, 2020
1 parent a49a9d5 commit bca9c9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ export class Version extends BaseClass {
}

if (await this.fs.pathExists(version.dir)) {
await git.checkout(version.long, { cwd: version.dir })
await git.hardReset(version.long, { cwd: version.dir })
return version
}

Expand Down

0 comments on commit bca9c9a

Please sign in to comment.