Skip to content

Commit

Permalink
log the short head
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpinDale committed Nov 4, 2024
1 parent e34a6ad commit efed8c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def print_commit_hash():
try:
commit_hash = subprocess.check_output(["git",
"rev-parse",
"--short",
"HEAD"]).decode("utf-8").strip()
except (subprocess.CalledProcessError, FileNotFoundError):
commit_hash = "placeholder"
Expand Down

0 comments on commit efed8c6

Please sign in to comment.