Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #1143

Closed
Open
Created 12 years ago by Administrator@rootOwner
  • New issue

  • Report abuse

  • New issue

  • Report abuse

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?

Linked issues
...

    Related merge requests

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: dzaporozhets

      Its expected behaviour. Sorry for that but we got some issues with gitolite repo starting from non letter symbol.

      By Administrator on 2012-07-25T18:18:50 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: dzaporozhets

      so for better system stability we decided to do it

      By Administrator on 2012-07-25T18:20:21 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: koenpunt

      Ok, haven't had any problems with it so far, so I'll just modify the validation rules and hope to see it back in the source. Any clues of what's causing the problem in gitolite?

      By Administrator on 2012-07-26T08:17:38 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      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)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: koenpunt

      @mikkyhouse Any comment on closing these issues?

      By Administrator on 2013-02-26T15:01:53 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      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-general

      By Administrator on 2013-02-27T20:09:40 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: koenpunt

      @dosire Since when are numbers special characters?

      By Administrator on 2013-02-28T14:09:48 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      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)

    • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
    Please register or sign in to reply
    0 Assignees
    Assign to
    Milestone
    No milestone
    None
    None
    Time tracking
    Due date
    None
    None
    0
    Labels
    None
    Assign labels
    • No matching results
    • Manage project labels
    Confidentiality
    Not confidential

    You are going to turn on confidentiality. Only team members with at least Reporter access will be able to see and leave comments on the issue.

    Lock issue
    Unlocked
    participants
    Reference:

    Menu

    Projects Groups Snippets
    Help