From e06a3b00ae2e7c6fbb5c7ec8d827e580286ce7e8 Mon Sep 17 00:00:00 2001 From: cclecle Date: Mon, 27 Mar 2023 23:27:21 +0100 Subject: [PATCH] fix wrong getMessagesSinceTag() command --- src/pygitversionhelper/gitversionhelper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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