Commit 2f148190c42d857a8580b178eb45c3e4394e7356
Exists in
master
and in
4 other branches
Merge pull request #5781 from Rovanion/patch-5
Git clone now gets the right branch from the getgo
Showing
1 changed file
with
2 additions
and
8 deletions
Show diff stats
doc/install/installation.md
| @@ -144,13 +144,10 @@ GitLab Shell is an ssh access and repository management software developed speci | @@ -144,13 +144,10 @@ GitLab Shell is an ssh access and repository management software developed speci | ||
| 144 | cd /home/git | 144 | cd /home/git |
| 145 | 145 | ||
| 146 | # Clone gitlab shell | 146 | # Clone gitlab shell |
| 147 | - sudo -u git -H git clone https://github.com/gitlabhq/gitlab-shell.git | 147 | + sudo -u git -H git clone https://github.com/gitlabhq/gitlab-shell.git -b v1.7.9 |
| 148 | 148 | ||
| 149 | cd gitlab-shell | 149 | cd gitlab-shell |
| 150 | 150 | ||
| 151 | - # switch to right version | ||
| 152 | - sudo -u git -H git checkout v1.7.9 | ||
| 153 | - | ||
| 154 | sudo -u git -H cp config.yml.example config.yml | 151 | sudo -u git -H cp config.yml.example config.yml |
| 155 | 152 | ||
| 156 | # Edit config and replace gitlab_url | 153 | # Edit config and replace gitlab_url |
| @@ -174,14 +171,11 @@ To setup the MySQL/PostgreSQL database and dependencies please see [`doc/install | @@ -174,14 +171,11 @@ To setup the MySQL/PostgreSQL database and dependencies please see [`doc/install | ||
| 174 | ## Clone the Source | 171 | ## Clone the Source |
| 175 | 172 | ||
| 176 | # Clone GitLab repository | 173 | # Clone GitLab repository |
| 177 | - sudo -u git -H git clone https://github.com/gitlabhq/gitlabhq.git gitlab | 174 | + sudo -u git -H git clone https://github.com/gitlabhq/gitlabhq.git -b 6-3-stable gitlab |
| 178 | 175 | ||
| 179 | # Go to gitlab dir | 176 | # Go to gitlab dir |
| 180 | cd /home/git/gitlab | 177 | cd /home/git/gitlab |
| 181 | 178 | ||
| 182 | - # Checkout to stable release | ||
| 183 | - sudo -u git -H git checkout 6-3-stable | ||
| 184 | - | ||
| 185 | **Note:** | 179 | **Note:** |
| 186 | You can change `6-3-stable` to `master` if you want the *bleeding edge* version, but never install master on a production server! | 180 | You can change `6-3-stable` to `master` if you want the *bleeding edge* version, but never install master on a production server! |
| 187 | 181 |