From e724582fd085cc7f410c7fc7ceaaf3fa3c7c9320 Mon Sep 17 00:00:00 2001 From: coordt Date: Sat, 11 Nov 2023 13:49:05 +0000 Subject: [PATCH] deploy: ff79dc7f62522b454c538f0646461eee59be0ca0 --- _modules/bumpversion/scm.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_modules/bumpversion/scm.html b/_modules/bumpversion/scm.html index 6947367a..d87bb93e 100644 --- a/_modules/bumpversion/scm.html +++ b/_modules/bumpversion/scm.html @@ -547,7 +547,7 @@

Source code for bumpversion.scm

         )
         result.check_returncode()
         if result.stdout:
-            current_version = result.stdout.splitlines(keepends=False)[0].lstrip("v")
+            current_version = result.stdout.splitlines(keepends=False)[-1].lstrip("v")
         is_dirty = len(subprocess.check_output(["hg", "status", "-mard"])) != 0  # noqa: S603, S607
         return SCMInfo(tool=cls, current_version=current_version, dirty=is_dirty)