Skip to content

Commit

Permalink
gitRepo - ignore git pull error
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaur-bndes committed Feb 10, 2023
1 parent 4febfdf commit 381e1dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/repository/git_repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ export default class GitRepository extends AbstractRepository {

async init(): Promise<void> {
if (existsSync(this.localDir)) {
await this.gitUtils.pull(this.localDir);
try {
await this.gitUtils.pull(this.localDir);
} catch (error) {
log.info(`Ignoring GIT error and moving on. Error:${error}`)
}
} else {
await this.gitUtils.clone(this.rootUrl, this.localDir, true);
}
Expand Down

0 comments on commit 381e1dd

Please sign in to comment.