Skip to content

Commit

Permalink
fix: Add empty branch in other dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Aug 10, 2024
1 parent 092bf91 commit 208d796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nf_core/components/components_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def get_components_to_install(subworkflow_dir: str) -> Tuple[List[Dict[str, Opti
name, link = match.groups()
if link.startswith("../../../"):
name_split = name.lower().split("_")
modules.append({"name": "/".join(name_split), "org_path": None, "git_remote": None})
modules.append({"name": "/".join(name_split), "org_path": None, "git_remote": None, "branch": None})
elif link.startswith("../"):
subworkflows.append(name.lower())

Expand All @@ -163,7 +163,7 @@ def get_components_to_install(subworkflow_dir: str) -> Tuple[List[Dict[str, Opti
for component in components:
if component not in subworkflows and component in [d["name"] for d in modules]:
if isinstance(component, str):
comp_dict = {"name": component, "org_path": None, "git_remote": None}
comp_dict = {"name": component, "org_path": None, "git_remote": None, "branch": None}
else:
name = list(component.keys())[0]
git_remote = component[name]["git_remote"]
Expand Down

0 comments on commit 208d796

Please sign in to comment.