Skip to content

Commit 80bfab1

Browse files
committed
slightly improve robustness of git_helper to malformed tags
1 parent 507a674 commit 80bfab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ci/git_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def _commits_since(self, ref_name):
277277

278278
def _update_tags(self, suppress_stderr: bool = False) -> None:
279279
stderr = subprocess.DEVNULL if suppress_stderr else None
280-
self.latest_tag = self.run("git describe --tags --abbrev=0", stderr=stderr)
280+
self.latest_tag = self.run("git describe --tags --abbrev=0 --match='v*'", stderr=stderr)
281281
self.commits_since_latest = self._commits_since(self.latest_tag)
282282

283283
self.latest_upstream_tag = self.run("git describe --tags --abbrev=0 --match='*-*'", stderr=stderr)

0 commit comments

Comments
 (0)