Skip to content

Commit

Permalink
build: use deterministic git rev-parse
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilata committed Dec 3, 2024
1 parent d2d9706 commit 01f8b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/makeversionhdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_version_info_from_git():
return None
try:
git_hash = subprocess.check_output(
["git", "rev-parse", "--short", "HEAD"],
["git", "rev-parse", "--short=7", "HEAD"],
stderr=subprocess.STDOUT,
universal_newlines=True,
).strip()
Expand Down

0 comments on commit 01f8b48

Please sign in to comment.