Skip to content

Commit

Permalink
fix: Pass branch in install too
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Jul 28, 2024
1 parent 0f08bbe commit 6d052de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nf_core/components/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def __init__(
):
super().__init__(component_type, pipeline_dir, remote_url, branch, no_pull)
self.current_remote = remote_url
self.branch = branch
self.force = force
self.prompt = prompt
self.sha = sha
Expand All @@ -57,9 +58,9 @@ def install(self, component, silent=False):
if isinstance(component, dict):
if component["git_remote"] is not None:
remote_url = component["git_remote"]
self.modules_repo = ModulesRepo(remote_url)
self.modules_repo = ModulesRepo(remote_url, self.branch)
else:
self.modules_repo = ModulesRepo(self.current_remote)
self.modules_repo = ModulesRepo(self.current_remote, self.branch)
component = component["name"]

# Verify that 'modules.json' is consistent with the installed modules and subworkflows
Expand Down

0 comments on commit 6d052de

Please sign in to comment.