diff --git a/nf_core/modules/modules_repo.py b/nf_core/modules/modules_repo.py index 1c242b4764..d0a831c933 100644 --- a/nf_core/modules/modules_repo.py +++ b/nf_core/modules/modules_repo.py @@ -401,6 +401,7 @@ def get_component_git_log(self, component_name, component_type, depth=None): commits_new = [ {"git_sha": commit.hexsha, "trunc_message": commit.message.partition("\n")[0]} for commit in commits_new ] + commits_old = [] if component_type == "modules": # Grab commits also from previous modules structure component_path = os.path.join("modules", component_name) @@ -408,7 +409,7 @@ def get_component_git_log(self, component_name, component_type, depth=None): commits_old = [ {"git_sha": commit.hexsha, "trunc_message": commit.message.partition("\n")[0]} for commit in commits_old ] - commits = iter(commits_new + commits_old) + commits = iter(commits_new + commits_old) return commits def get_latest_component_version(self, component_name, component_type): diff --git a/nf_core/subworkflows/install.py b/nf_core/subworkflows/install.py index a5f0c63dcb..439cf187b7 100644 --- a/nf_core/subworkflows/install.py +++ b/nf_core/subworkflows/install.py @@ -91,7 +91,7 @@ def install(self, subworkflow, silent=False): log.debug(f"Installing subworkflow '{subworkflow}' at hash {version} from {self.modules_repo.remote_url}") # Download subworkflow files - if not self.install_subworkflow_files(subworkflow, version, self.modules_repo, install_folder): + if not self.install_component_files(subworkflow, version, self.modules_repo, install_folder): return False # Install included modules and subworkflows