Skip to content

Commit

Permalink
refact: Always set current remote
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Oct 25, 2024
1 parent 6982193 commit a9b9184
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nf_core/components/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a9b9184

Please sign in to comment.