We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5013472 commit acf41e1Copy full SHA for acf41e1
commitizen/tags.py
@@ -240,11 +240,11 @@ def find_tag_for(
240
) -> GitTag | None:
241
"""Find the first matching tag for a given version."""
242
version = self.scheme(version) if isinstance(version, str) else version
243
- possible_tags = [
+ possible_tags = set(
244
self.normalize_tag(version, f)
245
for f in (self.tag_format, *self.legacy_tag_formats)
246
- ]
247
- candidates = [t for t in tags if any(t.name == p for p in possible_tags)]
+ )
+ candidates = [t for t in tags if t.name in possible_tags]
248
if len(candidates) > 1:
249
warnings.warn(
250
UserWarning(
0 commit comments