Skip to content

Commit

Permalink
fix: Move check to cross-org stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Sep 30, 2024
1 parent 11328f8 commit 5504e8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nf_core/components/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def install(self, component: Union[str, Dict[str, str]], silent: bool = False) -
self.modules_repo = ModulesRepo(remote_url, branch)
component = component["name"]

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

if self.repo_type == "modules":
log.error(f"You cannot install a {component} in a clone of nf-core/modules")
Expand Down

0 comments on commit 5504e8a

Please sign in to comment.