Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d65f9cdb
Commit
d65f9cdb
authored
Nov 07, 2018
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add steps to manually migrate projects
parent
f7ae84f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
doc/raketasks/import.md
doc/raketasks/import.md
+18
-1
No files found.
doc/raketasks/import.md
View file @
d65f9cdb
...
...
@@ -115,3 +115,20 @@ The following are **not** importable as bare repositories:
There is an
[
open issue to add a migration to make all bare repositories
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment