diff --git a/pyproject.toml b/pyproject.toml index a99a18e3..bf796983 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ namespaces = true # ----------------------------------------- Project Metadata ------------------------------------- # [project] -version = "0.0.0.dev157" +version = "0.0.0.dev158" name = "RepoDynamics" dependencies = [ "packaging >= 23.2, < 24", diff --git a/src/repodynamics/git.py b/src/repodynamics/git.py index f8caa1d3..45846e32 100644 --- a/src/repodynamics/git.py +++ b/src/repodynamics/git.py @@ -345,7 +345,7 @@ def get_commits( out = self._run(cmd) pattern = re.compile( - rf"{re.escape(marker_start)}\n(.*?)\n(.*?)\n(.*?)\n(.*?){re.escape(marker_commit_end)}\n(.*?)\n(?:\n|$)", + rf"{re.escape(marker_start)}\n(.*?)\n(.*?)\n(.*?)\n(.*?){re.escape(marker_commit_end)}\n(.*?)(?:\n\n|$)", re.DOTALL )