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
path: root/doc
diff options
context:
space:
mode:
authorJob van der Voort <job@gitlab.com>2015-02-03 03:22:53 +0300
committerJob van der Voort <job@gitlab.com>2015-02-03 03:22:53 +0300
commit6496dc3cd4aa6abcb0b47184fcd4932796cd12cb (patch)
tree7c26eb505d326f28d0b9b1ea4fd13abea5594374 /doc
parentc0acb28c4ec710c90eb55dc996251a30001c8e79 (diff)
parentaddb2555841510bb48bc0fb9f1a90d80a7ed87fe (diff)
Merge branch 'doc/import' into 'master'
Make omnibus the default in repo import docs I hope this reads nicer for people using omnibus packages. See merge request !1420
Diffstat (limited to 'doc')
-rw-r--r--doc/raketasks/import.md15
1 files changed, 11 insertions, 4 deletions
diff --git a/doc/raketasks/import.md b/doc/raketasks/import.md
index 32fe4dc8d0a..9a10c8d6850 100644
--- a/doc/raketasks/import.md
+++ b/doc/raketasks/import.md
@@ -19,19 +19,26 @@ your repositories are located by looking at `config/gitlab.yml` under the `gitla
New folder needs to have git user ownership and read/write/execute access for git user and its group:
```
-$ mkdir new_group
-$ chown git:git new_group
-$ chmod 770 new_group
+sudo -u git mkdir /var/opt/gitlab/git-data/repositories/new_group
```
+If you are using an installation from source, replace `/var/opt/gitlab/git-data`
+with `/home/git`.
+
### Copy your bare repositories inside this newly created folder:
```
-$ cp -r /old/git/foo.git/ /home/git/repositories/new_group/
+sudo cp -r /old/git/foo.git /var/opt/gitlab/git-data/repositories/new_group/
+
+# Do this once when you are done copying git repositories
+sudo chown -R git:git /var/opt/gitlab/git-data/repositories/new_group/
```
`foo.git` needs to be owned by the git user and git users group.
+If you are using an installation from source, replace `/var/opt/gitlab/git-data`
+with `/home/git`.
+
### Run the command below depending on your type of installation:
#### Omnibus Installation