Compare commits

...

1 Commits

Author SHA1 Message Date
cclecle
e06a3b00ae fix wrong getMessagesSinceTag() command 2023-03-27 23:27:21 +01:00

View File

@@ -169,9 +169,9 @@ class gitversionhelper: # pylint: disable=too-few-public-methods
str_cmd: str
if ("same_branch" in kwargs) and (kwargs["same_branch"] is True):
str_cmd = f"git rev-list --first-parent --ancestry-path {tag_commit_id}..{current_commit_id}"
str_cmd = f"git rev-list --first-parent {tag_commit_id}..{current_commit_id}" # ok
else:
str_cmd = f"git rev-list --ancestry-path {tag_commit_id}..{current_commit_id}"
str_cmd = f"git rev-list {tag_commit_id}..{current_commit_id}" # ok
if ("ignore_merged" in kwargs) and (kwargs["ignore_merged"] is True):
str_cmd = str_cmd + " --no-merges" # ok