From a9b9184d4093e25fad20c25d0ef9676190d42a93 Mon Sep 17 00:00:00 2001 From: jvfe Date: Fri, 25 Oct 2024 14:03:53 -0300 Subject: [PATCH] refact: Always set current remote --- nf_core/components/update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nf_core/components/update.py b/nf_core/components/update.py index 5aa24acac..c69cb076e 100644 --- a/nf_core/components/update.py +++ b/nf_core/components/update.py @@ -103,6 +103,9 @@ 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.current_remote is None: + self.current_remote = self.modules_repo.remote_url + if self.current_remote == self.modules_repo.remote_url and self.sha is not None: self.current_sha = self.sha else: