Character '@' in git tag is incorrectly parsed
Hello
I'm setting terrareg as a private registry migrating from github with release-please
. Release-please is an automation that automatically create tags and releases in the repository following some rules. I'll not get into it extensively but the gist of it is that we keep several different modules in one single repository and every modification in a particular module that is merged creates a new tag for the repo with the format "module-name@v1.2.3"
When trying to create a module using the interface, I noticed that if I use the pattern module-name@v{version}
, the @
gets incorrectly parsed and the resulting saved configuration is module-name%40v{version}
.
I've located the part of the code that parses this field on models.py
in the update_git_tag_format
function.
sanitised_git_tag_format = urllib.parse.quote(git_tag_format, safe=r'/{}')
Is it possible to add @
as a safe character in this parse?
Github reference: https://github.com/MatthewJohn/terrareg/issues/67