summaryrefslogtreecommitdiff
path: root/doc/raketasks/import.md
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-01-26 17:03:04 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-01-26 17:03:04 +0100
commitaddb2555841510bb48bc0fb9f1a90d80a7ed87fe (patch)
tree7a33fdf3499fdc2b5a07ff7e1f8b14017e6ef5e8 /doc/raketasks/import.md
parentc68742ed560b0bbf84c9fe6f6707cf47e9ed792c (diff)
downloadgitlab-ce-addb2555841510bb48bc0fb9f1a90d80a7ed87fe.tar.gz
Separate out the instructions for source installs
Diffstat (limited to 'doc/raketasks/import.md')
-rw-r--r--doc/raketasks/import.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/raketasks/import.md b/doc/raketasks/import.md
index dbce6aae895..9a10c8d6850 100644
--- a/doc/raketasks/import.md
+++ b/doc/raketasks/import.md
@@ -19,16 +19,15 @@ 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:
```
-# Replace /var/opt/gitlab/git-data with /home/git if you are using an
-# installation from source.
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:
```
-# Replace /var/opt/gitlab/git-data with /home/git if you are using an
-# installation from source.
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
@@ -37,6 +36,9 @@ 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