From 88cabdfac08311181e383b51f96f881a5c5703e9 Mon Sep 17 00:00:00 2001 From: RepoDynamicsBot <80158628+AAriam@users.noreply.github.com> Date: Tue, 24 Oct 2023 22:21:47 +0200 Subject: [PATCH] fix --- pyproject.toml | 2 +- src/repodynamics/git.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 )