Skip to content

Commit

Permalink
Use default setuptools-scm value for tag-pattern instead of empty s…
Browse files Browse the repository at this point in the history
…tring

Closes #67
  • Loading branch information
edgarrmondragon committed Jul 1, 2024
1 parent e186a8b commit d9e5a1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hatch_vcs/version_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def construct_setuptools_scm_config(self):
config = deepcopy(self.config_raw_options)
config.setdefault('root', self.root)

config.setdefault('tag_regex', self.config_tag_pattern)
# Only set for non-empty strings
if self.config_tag_pattern:
config.setdefault('tag_regex', self.config_tag_pattern)

# Only set for non-empty strings
if self.config_fallback_version:
Expand Down

0 comments on commit d9e5a1e

Please sign in to comment.