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

black applied

parent 2a83123b
No related branches found
No related tags found
2 merge requests!19Move linux-debian11 into main,!9force `subprocess.run` to check return code is 0
Pipeline #368461 failed
This commit is part of merge request !9. Comments created here will be created in the context of that merge request.
......@@ -246,7 +246,6 @@ def create_dir_structure(mpsd_release: str, script_dir: Path) -> None:
run(["git", "pull"], check=True)
def get_release_info(mpsd_release: str, script_dir: Path) -> Tuple[str, str, List[str]]:
"""
Get information about the specified release, such as the branch and commit hash
......@@ -276,9 +275,7 @@ def get_release_info(mpsd_release: str, script_dir: Path) -> Tuple[str, str, Lis
with os_chdir("spack-environments"):
# Get the branch and commit hash of the spack-environments repo
spe_commit_hash = (
run(
["git", "rev-parse", "HEAD"], stdout=subprocess.PIPE, check=True
)
run(["git", "rev-parse", "HEAD"], stdout=subprocess.PIPE, check=True)
.stdout.decode()
.strip()
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment