Currently we delegate to the git command line for checking whether a tag name is allowed. We could do more checking in Django to give a friendly (& earlier) error. This would also let us give a much more tightly defined URL regex for entity versions. For instance, we could say tag names must be drawn from [-_A-Za-z0-9]. This is more constrained than git allows but probably covers what users would actually want.
Then we could set tag form fields to validate against this regex too.
Follows from #260.
Currently we delegate to the git command line for checking whether a tag name is allowed. We could do more checking in Django to give a friendly (& earlier) error. This would also let us give a much more tightly defined URL regex for entity versions. For instance, we could say tag names must be drawn from
[-_A-Za-z0-9]. This is more constrained than git allows but probably covers what users would actually want.Then we could set tag form fields to validate against this regex too.
Follows from #260.