Skip to content
Snippets Groups Projects
Commit ac6e9c70 authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

fix script hash not getting pickedup

parent fb1c6fcb
No related branches found
No related tags found
2 merge requests!19Move linux-debian11 into main,!1Resolve "First draft for user interface for top level install command"
...@@ -76,14 +76,15 @@ def setup_log_cmd(mpsd_release: str, script_dir: str, msg: str = None, *args, ** ...@@ -76,14 +76,15 @@ def setup_log_cmd(mpsd_release: str, script_dir: str, msg: str = None, *args, **
# call statement: # call statement:
cmd_line = " ".join(sys.argv) cmd_line = " ".join(sys.argv)
# script branch and commit hash # script branch and commit hash
script_branch = ( with os_chdir(script_dir):
subprocess.run(["git", "rev-parse", "--abbrev-ref", "HEAD"], stdout=subprocess.PIPE) script_branch = (
.stdout.decode() subprocess.run(["git", "rev-parse", "--abbrev-ref", "HEAD"], stdout=subprocess.PIPE)
.strip() .stdout.decode()
) .strip()
script_commit_hash = ( )
subprocess.run(["git", "rev-parse", "--short", "HEAD"], stdout=subprocess.PIPE).stdout.decode().strip() script_commit_hash = (
) subprocess.run(["git", "rev-parse", "--short", "HEAD"], stdout=subprocess.PIPE).stdout.decode().strip()
)
# spack-environments branch and commit hash from kwargs # spack-environments branch and commit hash from kwargs
spe_branch = kwargs.get("spe_branch", None) spe_branch = kwargs.get("spe_branch", None)
spe_commit_hash = kwargs.get("spe_commit_hash", None) spe_commit_hash = kwargs.get("spe_commit_hash", None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment