Skip to content

Commit

Permalink
Revert "fix: self.sha must not be none to reset to none"
Browse files Browse the repository at this point in the history
This reverts commit 65aa1c4.
  • Loading branch information
jvfe committed Oct 28, 2024
1 parent 65aa1c4 commit 1e10b29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nf_core/components/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ 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 not None:
if self.current_remote is None:
self.current_remote = self.modules_repo.remote_url

if self.original_remote != self.modules_repo.remote_url and self.sha is None:
self.current_sha = None
else:
self.current_sha = self.sha

if self.current_remote is None:
self.current_remote = self.modules_repo.remote_url

self.component = component
if updated is None:
updated = []
Expand Down

0 comments on commit 1e10b29

Please sign in to comment.