diff options
-rw-r--r-- | doc/raketasks/import.md | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/raketasks/import.md b/doc/raketasks/import.md index 05f2c9bd83d..a1a6cfcce7f 100644 --- a/doc/raketasks/import.md +++ b/doc/raketasks/import.md @@ -114,4 +114,21 @@ The following are **not** importable as bare repositories: renamed or transferred in v10.4+. There is an [open issue to add a migration to make all bare repositories -importable](https://gitlab.com/gitlab-org/gitlab-ce/issues/41776).
\ No newline at end of file +importable](https://gitlab.com/gitlab-org/gitlab-ce/issues/41776). + +Until then, you may wish to manually migrate repositories yourself. You can use +[Rails console](https://docs.gitlab.com/omnibus/maintenance/#starting-a-rails-console-session) +to do so. In a Rails console session, run the following to migrate a project: + +``` +project = Project.find_by_full_path('gitlab-org/gitlab-ce') +project.write_repository_config +``` + +In a Rails console session, run the following to migrate all of a namespace's +projects (this may take awhile if there are 1000s of projects in a namespace): + +``` +namespace = Namespace.find_by_full_path('gitlab-org') +namespace.send(:write_projects_repository_config) +```
\ No newline at end of file |