Skip to content

Commit

Permalink
fix retrieve repo type
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Jul 1, 2022
1 parent d7e2ac2 commit 3dbfe92
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions nf_core/modules/module_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,7 @@ def __init__(
self.no_prompts = no_prompts
self.pytest_args = pytest_args

# Check repository type
try:
pipeline_dir, repo_type = nf_core.modules.module_utils.get_repo_type(".", use_prompt=False)
log.debug(f"Found {repo_type} repo: {pipeline_dir}")
except UserWarning as e:
log.debug(f"Only showing remote info: {e}")
pipeline_dir = None

super().__init__(pipeline_dir, remote_url, branch, no_pull)
super().__init__(".", remote_url, branch, no_pull)
self.get_pipeline_modules()

def run(self):
Expand Down

0 comments on commit 3dbfe92

Please sign in to comment.