Skip to content

GitLab

  • Menu
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
  • Merge requests
  • !4911

Closed
Created Aug 26, 2013 by Administrator@rootOwner
  • Report abuse
Report abuse

Importing repositories generated empty repos

  • Overview 0
  • Commits 1
  • Changes 1

Created by: jackeri

There are multiple issues on this problem but one example is #3693 I checked out the 6.0 stable and the issue seemed to be there as well, even tho the issue pages mostly talk about older releases.

If I imported a repository straight from the gitlab repository directory (~/repository/repo.gi) it would have been set as admin project and all the data would be reseted, basically making it an empty repository. I fix the issue by moving the folder to the correct folder before creating the project to gitlab.

Also there was an issue that if I added a repository to a users folder (~/repository/user.name/repo.git) it would not be added as the importer only tried to check/create groups. I added the checks to see if the folder is an existing users or groups folder and also set the owner of the repo to the user owning the group or the user itself.

This could be cherry picked to the master as well i believe, I just needed it at the 6-0 stable as that is what we started using.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/jackeri/6-0-stable