Skip to content
Snippets Groups Projects
Commit 6c9bcff7 authored by Hans Fangohr's avatar Hans Fangohr
Browse files

black

parent 50ec0b20
No related branches found
No related tags found
1 merge request!35refactor create-directory-structure, and create 'clone_repo' function
Pipeline #370483 passed
......@@ -508,9 +508,7 @@ def record_script_execution_summary(
)
def clone_repo(
target_path: Path, repo_url: str, branch=None
) -> None:
def clone_repo(target_path: Path, repo_url: str, branch=None) -> None:
"""Clone repo locally. Optionally checkout a branch.
Parameters
......@@ -645,7 +643,8 @@ def prepare_environment(mpsd_release: str, root_dir: Path) -> List[str]:
if repo_path.exists():
logging.debug(f"directory {repo_path} exists already, not touching")
logging.debug(
"XXX TODO: should we run a git pull here to get the latest version? XXX")
"XXX TODO: should we run a git pull here to get the latest version? XXX"
)
else:
repo_url = config_vars["spack_environments_repo"]
logging.info(f"cloning repository {repo_path} from {repo_url}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment