diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-04 03:08:50 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-04 03:08:50 +0000 |
commit | bb19d18713d1b3da7d564826f5e21e8d9f9f36cd (patch) | |
tree | 253b299d67af8b585e1db009244ae308d64ad9b3 /doc/raketasks | |
parent | 4fe93274dec62ff7361a67be88e320131d66b788 (diff) | |
download | gitlab-ce-bb19d18713d1b3da7d564826f5e21e8d9f9f36cd.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/raketasks')
-rw-r--r-- | doc/raketasks/import.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/raketasks/import.md b/doc/raketasks/import.md index c6c9389b924..09d919d0120 100644 --- a/doc/raketasks/import.md +++ b/doc/raketasks/import.md @@ -98,7 +98,7 @@ To support importing bare repositories from hashed storage, GitLab 10.4 and later stores the full project path with each repository, in a special section of the Git repository's config file. This section is formatted as follows: -``` +```ini [gitlab] fullpath = gitlab-org/gitlab ``` @@ -128,7 +128,7 @@ 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: -``` +```ruby project = Project.find_by_full_path('gitlab-org/gitlab') project.write_repository_config ``` @@ -136,7 +136,7 @@ project.write_repository_config In a Rails console session, run the following to migrate all of a namespace's projects (this may take a while if there are 1000s of projects in a namespace): -``` +```ruby namespace = Namespace.find_by_full_path('gitlab-org') namespace.send(:write_projects_repository_config) ``` |