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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
33f1ced6
Commit
33f1ced6
authored
Nov 07, 2018
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve wording and consistency
parent
36c69357
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
18 deletions
+19
-18
doc/raketasks/import.md
doc/raketasks/import.md
+19
-18
No files found.
doc/raketasks/import.md
View file @
33f1ced6
...
...
@@ -88,15 +88,15 @@ more details.
### Which repositories are importable?
####
v
10.3 or earlier
####
GitLab
10.3 or earlier
Importing bare repositories from hashed storage is unsupported.
####
v
10.4 and later
####
GitLab
10.4 and later
In order to support this, we began storing the full GitLab project path with
each repository, in a special section of the git repository's config file. This
section is formatted as follows:
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:
```
[gitlab]
...
...
@@ -105,20 +105,21 @@ section is formatted as follows:
However, existing repositories were not migrated to include this path.
The following are importable as bare repositories:
Bare repositories are importable if the following events occurred to the
repository in GitLab 10.4 and later:
-
Created
in hashed storage in v10.4+
-
Migrated to hashed storage
in v10.4+
-
Renamed
in v10.4+
-
Transferred to another namespace
in v10.4+
-
Ancestor renamed
in v10.4+
-
Ancestor transferred to another namespace
in v10.4+
-
Created
-
Migrated to hashed storage
-
Renamed
-
Transferred to another namespace
-
Ancestor renamed
-
Ancestor transferred to another namespace
The following are
**not**
importable as bare repositories
:
Bare repositories are
**not**
importable by GitLab 10.4 and later when all the following are true about the repository
:
-
Created in or migrated to hashed storage in v10.3 or earlier, and was not
renamed or transferred in v10.4+, and whose ancestor namespaces were not
renamed or transferred in v10.4+
.
-
It was created in GitLab 10.3 or earlier.
-
It was not renamed, transferred, or migrated to hashed storage in GitLab 10.4 and later.
-
Its ancestor namespaces were not renamed or transferred in GitLab 10.4 and later
.
There is an
[
open issue to add a migration to make all bare repositories
importable
](
https://gitlab.com/gitlab-org/gitlab-ce/issues/41776
)
.
...
...
@@ -133,7 +134,7 @@ 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):
projects (this may take a
while if there are 1000s of projects in a namespace):
```
namespace = Namespace.find_by_full_path('gitlab-org')
...
...
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