Skip to content

Commit

Permalink
Add hour+minute to release suffix
Browse files Browse the repository at this point in the history
Do not add second, those extra digits push against some length limit on
the version string.

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Sep 8, 2023
1 parent d8faf10 commit 80f092d
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 @@ -74,7 +74,7 @@ def calc_pre_release_suffix():
command = ["git", "rev-parse", "--short", "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}git{commit_hash}"
return f"{datetime.today():%Y%m%d%H%M}git{commit_hash}"


def edit_specfile(specfile_path, *, release_version=None, sources=None):
Expand Down

0 comments on commit 80f092d

Please sign in to comment.