From 3548a55cce160c74c437cae3c59b870ef6468004 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Mon, 19 Aug 2024 23:32:56 +0200 Subject: [PATCH] Detect multiple tags per commit --- tagger | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tagger b/tagger index 3353ec7..4277de9 100755 --- a/tagger +++ b/tagger @@ -20,9 +20,7 @@ need_tag = False max_major = 0 for ln in result.stdout.split("\n"): - m = re.match(r"[0-9a-f]+ .*\btag: ([-a-z0-9._]+)", ln) - if m: - tag = m.group(1) + for tag in re.findall(r"\btag: ([-a-z0-9._]+)", ln): if tag.startswith(args.prefix): found_tags.add(tag) try: