Skip to content

Commit ce2c0aa

Browse files
committed
Fixed CLI commit date conversion issue
1 parent 1557cc3 commit ce2c0aa

File tree

1 file changed

+3
-1
lines changed
  • redis_benchmarks_specification/__cli__

1 file changed

+3
-1
lines changed

Diff for: redis_benchmarks_specification/__cli__/cli.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def cli_command_logic(args, project_name, project_version):
9292
total_commits = 0
9393
if args.use_branch:
9494
for commit in repo.iter_commits():
95-
commit_datetime = commit.committed_datetime
95+
commit_datetime = str(commit.committed_datetime)
9696
if (
9797
args.from_date
9898
<= datetime.datetime.utcfromtimestamp(commit_datetime.timestamp())
@@ -144,6 +144,7 @@ def cli_command_logic(args, project_name, project_version):
144144
)
145145
else:
146146
git_version = tag.name
147+
commit_datetime = str(tag.commit.committed_datetime)
147148
print(
148149
"Commit summary: {}. Extract semver: {}".format(
149150
tag.commit.summary, git_version
@@ -154,6 +155,7 @@ def cli_command_logic(args, project_name, project_version):
154155
"git_hash": tag.commit.hexsha,
155156
"git_version": git_version,
156157
"commit_summary": tag.commit.summary,
158+
"commit_datetime": commit_datetime,
157159
}
158160
)
159161
except packaging.version.InvalidVersion:

0 commit comments

Comments
 (0)