diff --git a/src/pygitversionhelper/gitversionhelper.py b/src/pygitversionhelper/gitversionhelper.py index 0e720a0..e2180f9 100644 --- a/src/pygitversionhelper/gitversionhelper.py +++ b/src/pygitversionhelper/gitversionhelper.py @@ -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