Closed mattwcole closed 1 year ago
The pull request above attempts to correct the behavior of getValidTags() so that tags that don't match the requested tag prefix are not considered valid. I wouldn't think anyone was relying on the previous behavior where getValidTags() would return tags that didn't match the submitted prefix, but it is a slight behavior change.
The
tag_prefix
breaks if non prefixed tags are present in the repository. Consider the following history:With a
tag_prefix: app1/
, the new tag should beapp1/3.0.1
, but it is instead7.0.1
.This appears to be a bug in getValidTags. I have written a failing test to demonstrate.