Commit d65f9cdb authored by Michael Kozono's avatar Michael Kozono

Add steps to manually migrate projects

parent f7ae84f9
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment