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
  • #4137

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

  • Report abuse

  • New issue

  • Report abuse

Importing existing repositories directly from the repositories path requires clarification.

Closed

Importing existing repositories directly from the repositories path requires clarification.

Created by: tnarik

Related to #3693, #3297, #2932, #3636 (closed), #3926 (closed) and https://github.com/gitlabhq/gitlabhq/wiki/Import-existing-repositories-into-GitLab.

The way I see it:

  1. Bare repositories copied to /home/git/repositories and imported with 5.x are not copied but just created inside the 'admin' namespace For instance: /home/git/repositories/repo.git will be left there and a new and empty /home/git/repositories/admin/repo.git will be created.
  2. Instead, if #2932 is used to patch the system, the repository will be used as is. For instance: /home/git/repositories/repo.git will be added to GitLab and files will be available.
  3. rake gitlab:import:repos (from 5.2) only works from /home/git/repositories, not any subfolder, so without any changes, it will create empty repos under the 'admin' namespace. Then the existing repositories can be moved on top of the new ones, replacing for instance the empty /home/git/repositories/admin/repo.git with the contents of /home/git/repositories/repo.git, which will make files available.

It would be great if the wiki is updated to reflect the current solution (which as far as I know is as described in 3.) and additionally the way forward is described (commit 5f9d78fd is meant to allow importing of repositories inside namespaces [and it works in spite of displaying an error because it cannot create the 'admin' group], but it doesn't seem to take care of the global namespace, for what I saw).

Linked issues
...

    Related merge requests

    • 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
    4
    Labels
    Awaiting developer action/feedback Awaiting feedback Documentation Git/Grit
    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