fix wrong getMessagesSinceTag() command

This commit is contained in:
cclecle
2023-03-27 23:27:21 +01:00
parent d3bf6ddaa6
commit e06a3b00ae

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