Skip to content

Commit

Permalink
fix commit hash in commit message autolink
Browse files Browse the repository at this point in the history
  • Loading branch information
quarckster committed Jul 15, 2024
1 parent 629733e commit 54cec40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def clone(branch: str, tmp_dir: str) -> None:


def get_commit_hash(tmp_dir: str) -> str:
ps = subprocess.run(["git", "rev-parse", "--short", "HEAD"], cwd=tmp_dir, capture_output=True)
ps = subprocess.run(["git", "rev-parse", "HEAD"], cwd=tmp_dir, capture_output=True)
if ps.returncode != 0:
raise SystemExit(ps.returncode)
return ps.stdout.decode("utf-8").strip()
Expand Down

0 comments on commit 54cec40

Please sign in to comment.