Project path and code can't start with a number
Closed
Project path and code can't start with a number
Created by: koenpunt
In the last update (2.7) the path
and code
fields of a repository are validated against /^[a-zA-Z][a-zA-Z0-9_\-\.]*$/
, but here at our company we are numbering most of the projects, like 12_project_description
and 13_some_other_project
and this breaks that.
Is there a specific reason to not allow path
and code
to start with a number?
Created by: koenpunt
According to the
README
of the latest gitolite (3), project names can start with a alphanumeric* User and repo names are as simple as possible; they must start with an alphanumeric, but after that they can also contain '.', '_', or '-'.
So changing the regex from
/\A[a-zA-Z][a-zA-Z0-9_\-\.]*\z/
to/\A[a-zA-Z0-9][a-zA-Z0-9_\-\.]*\z/
shouldn't be that much of a problem I think.By Administrator on 2012-10-29T15:36:31 (imported from GitLab project)
Created by: dosire
@koenpunt I think that the comment
Its expected behaviour. Sorry for that but we got some issues with gitolite repo starting from non letter symbol. so for better system stability we decided to do it
still stands. Right now GitLab no longer uses Gitolite but I don't think that starting with a special character is a good practice. BTW From now on feature requests go on http://gitlab.uservoice.com/forums/176466-generalBy Administrator on 2013-02-27T20:09:40 (imported from GitLab project)
Created by: dosire
@koenpunt I meant non-letter. Thanks for opening https://gitlab.uservoice.com/admin/forums/176466-general/suggestions/3700914-allow-repositories-to-start-with-a-number?tracking_code=58d6e1697b810c4e0b6b6653b63474c4
By Administrator on 2013-03-01T09:51:30 (imported from GitLab project)