diff --git a/doc/update/4.0-to-4.1.md b/doc/update/4.0-to-4.1.md index 368351d0c91..aa8a305a7ce 100644 --- a/doc/update/4.0-to-4.1.md +++ b/doc/update/4.0-to-4.1.md @@ -16,6 +16,8 @@ ### 2. Update GitLab ```bash +# Set the working directory +cd /home/gitlab/gitlab/ # Get latest code sudo -u gitlab -H git fetch diff --git a/doc/update/4.1-to-4.2.md b/doc/update/4.1-to-4.2.md index 15fea593560..536f22415e2 100644 --- a/doc/update/4.1-to-4.2.md +++ b/doc/update/4.1-to-4.2.md @@ -7,6 +7,10 @@ ### 2. Update code & db ```bash + +#Set the working directory +cd /home/gitlab/gitlab/ + # Get latest code sudo -u gitlab git fetch diff --git a/doc/update/4.2-to-5.0.md b/doc/update/4.2-to-5.0.md index 408e4ed3d0f..60d37931ec9 100644 --- a/doc/update/4.2-to-5.0.md +++ b/doc/update/4.2-to-5.0.md @@ -19,6 +19,7 @@ sudo chsh -s /bin/bash git __2. git clone gitlab-shell__ ``` +cd /home/git/ sudo -u git -H git clone https://github.com/gitlabhq/gitlab-shell.git /home/git/gitlab-shell ```