Commit 9571743d8f46e583a4edb465b831f495d642bf32
1 parent
a6472461
Exists in
spb-stable
and in
2 other branches
Import rake task documentation in separate file.
Showing
1 changed file
with
28 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,28 @@ | @@ -0,0 +1,28 @@ | ||
1 | +### Import bare repositories into GitLab project instance | ||
2 | + | ||
3 | +Notes: | ||
4 | + | ||
5 | +* project owner will be a first admin | ||
6 | +* groups will be created as needed | ||
7 | +* group owner will be the first admin | ||
8 | +* existing projects will be skipped | ||
9 | + | ||
10 | +How to use: | ||
11 | + | ||
12 | +1. copy your bare repos under git repos_path (see `config/gitlab.yml` gitlab_shell -> repos_path) | ||
13 | +2. run the command below | ||
14 | + | ||
15 | +``` | ||
16 | +bundle exec rake gitlab:import:repos RAILS_ENV=production | ||
17 | +``` | ||
18 | + | ||
19 | +Example output: | ||
20 | + | ||
21 | +``` | ||
22 | +Processing abcd.git | ||
23 | + * Created abcd (abcd.git) | ||
24 | +Processing group/xyz.git | ||
25 | + * Created Group group (2) | ||
26 | + * Created xyz (group/xyz.git) | ||
27 | +[...] | ||
28 | +``` |