fix: fix repository refresh

This commit is contained in:
tdurieux
2021-09-09 12:47:07 +02:00
parent 4cac767c8e
commit 3bbbeaa4d3

View File

@@ -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;
}