Skip to content

Commit

Permalink
Merge pull request #472 from mulkieran/specify-commit-hash-size
Browse files Browse the repository at this point in the history
Specify minimum size for short hash
  • Loading branch information
mulkieran committed Sep 8, 2023
2 parents 3c2ad83 + eeb3ab6 commit 54c264b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release_management/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def calc_pre_release_suffix():
:rtype: str
:returns: standard pre-release suffix
"""
command = ["git", "rev-parse", "--short", "HEAD"]
command = ["git", "rev-parse", "--short=8", "HEAD"]
with subprocess.Popen(command, stdout=subprocess.PIPE) as proc:
commit_hash = proc.stdout.readline().strip().decode("utf-8")
return f"{datetime.today():%Y%m%d%H%M}git{commit_hash}"
Expand Down

0 comments on commit 54c264b

Please sign in to comment.