Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-04 06:08:50 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-04 06:08:50 +0300
commitbb19d18713d1b3da7d564826f5e21e8d9f9f36cd (patch)
tree253b299d67af8b585e1db009244ae308d64ad9b3 /doc/raketasks
parent4fe93274dec62ff7361a67be88e320131d66b788 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/raketasks')
-rw-r--r--doc/raketasks/import.md6
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)
```