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
  • Issues
  • #6983

Closed
Open
Created May 15, 2014 by Administrator@rootOwner

Is there any reason why importing repos from command line won't work?

Created by: trusktr

I'm trying to do what it says here: https://github.com/gitlabhq/gitlabhq/wiki/Import-existing-repositories-into-GitLab

It worked for one repository, then I copied a whole bunch over, then when I tried bundle exec rake gitlab:import:repos RAILS_ENV=production the second it wouldn't import any repos.

The output isn't useful, only showing that it skipped existing repos:

┌─[16:12:44/hypership/git//usr/share/webapps/gitlab]
└─╼ bundle exec rake gitlab:import:repos RAILS_ENV=production
fatal: Not a git repository (or any of the parent directories): .git
Processing trusktr/sk8earth.git
 * sk8earth (trusktr/sk8earth.git) exists
Processing trusktr/sk8earth.wiki.git
 * Skipping wiki repo
Processing trusktr/hp-dsat.git
 * hp-dsat (trusktr/hp-dsat.git) exists
Processing trusktr/hp-dsat.wiki.git
 * Skipping wiki repo
Processing trusktr/webmanager2.wiki.git
 * Skipping wiki repo
Processing trusktr/webmanager2.git
 * webmanager2 (trusktr/webmanager2.git) exists
Processing pocket-protectors/hp-dsat.wiki.git
 * Skipping wiki repo
Processing pocket-protectors/hp-dsat.git
 * HP DSAT (pocket-protectors/hp-dsat.git) exists
Processing hero/hp-dsat.git
 * hp-dsat (hero/hp-dsat.git) exists
Processing bickerin/hp-dsat.git
 * HP DSAT (bickerin/hp-dsat.git) exists
Processing csc250/voting-system-5000.git
 * Voting System 5000 (csc250/voting-system-5000.git) exists
Processing csc250/voting-system-5000.wiki.git
 * Skipping wiki repo
Processing betta-footwear/website.git
 * website (betta-footwear/website.git) exists
Processing betta-footwear/website.wiki.git
 * Skipping wiki repo
Processing buzztrax/website.wiki.git
 * Skipping wiki repo
Processing buzztrax/website.git
 * website (buzztrax/website.git) exists
Done!

It doesn't show any output regarding the new repositories that I've pasted. I've triple checked that the repos are owned by the git user (i'm using git instead of gitlab) and that the permission allow for git to read/write all files.

Are there any specific reasons why import might now work?

Assignee
Assign to
Time tracking