diff --git a/nf_core/components/update.py b/nf_core/components/update.py index 0085654ea..e749f119e 100644 --- a/nf_core/components/update.py +++ b/nf_core/components/update.py @@ -104,12 +104,12 @@ def update(self, component=None, silent=False, updated=None, check_diff_exist=Tr self.modules_repo = ModulesRepo(remote_url, branch) component = component["name"] - if self.original_remote != self.modules_repo.remote_url and self.sha is None: - self.current_sha = None - if self.current_remote is None: self.current_remote = self.modules_repo.remote_url + if self.original_remote != self.current_remote: + self.current_sha = None + self.component = component if updated is None: updated = []