mutewinter/gitlabhq — pull request #1 by mutewinter (2011-12-13 18:33:42+00:00)
Title: Bulk repo import Rake task

I'm using this to import a large amount of existing Git repos into Gitlab. Here's how it works

1. Move existing repos into `import_projects` directory
2. Run `rake import_projects[owner_email]` _Note: owner\_email must be an existing user in Gitlab_
3. Repos are cloned into `/home/git/repositories` and added to Gitlab

_Note: The user running this must be able to sudo to the git user without a password, otherwise they will be prompted for their password_