From 3bbbeaa4d3e3adb9f0c947e16fc3ebd4a5b01a96 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Thu, 9 Sep 2021 12:47:07 +0200 Subject: [PATCH] fix: fix repository refresh --- src/Repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repository.ts b/src/Repository.ts index 4663507..b2ba44a 100644 --- a/src/Repository.ts +++ b/src/Repository.ts @@ -165,7 +165,7 @@ export default class Repository { const branch = this.source.branch; const newCommit = branches.filter((f) => f.name == branch.name)[0] ?.commit; - if (branch.commit == newCommit) { + if (branch.commit == newCommit && this.status == "ready") { console.log(`${this._model.repoId} is up to date`); return; }