summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Lacdao <aceraven777@gmail.com>2019-03-07 11:07:42 +0000
committerAris Lacdao <aceraven777@gmail.com>2019-03-07 11:07:42 +0000
commit587e30d0497bb38f237483eeaa43c6d05cdf7d18 (patch)
tree92fff9ebde23afd1dcd00269e68d0ebc14988867
parent5c59ff3df2c50696cbffffe38a82c8767d3e2a88 (diff)
downloadgitlab-ce-587e30d0497bb38f237483eeaa43c6d05cdf7d18.tar.gz
Update index.md
Bug on cloning repository: Getting error "fatal: Could not parse object {COMMIT_HASH}" Fix: cd into $new_release_dir instead of $releases_dir.
-rw-r--r--doc/ci/examples/laravel_with_gitlab_and_envoy/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/ci/examples/laravel_with_gitlab_and_envoy/index.md b/doc/ci/examples/laravel_with_gitlab_and_envoy/index.md
index d3b6650b0f4..ad5d968d5d8 100644
--- a/doc/ci/examples/laravel_with_gitlab_and_envoy/index.md
+++ b/doc/ci/examples/laravel_with_gitlab_and_envoy/index.md
@@ -268,7 +268,7 @@ The `releases` directory will hold all our deployments:
echo 'Cloning repository'
[ -d {{ $releases_dir }} ] || mkdir {{ $releases_dir }}
git clone --depth 1 {{ $repository }} {{ $new_release_dir }}
- cd {{ $releases_dir }}
+ cd {{ $new_release_dir }}
git reset --hard {{ $commit }}
@endtask
@@ -346,7 +346,7 @@ At the end, our `Envoy.blade.php` file will look like this:
echo 'Cloning repository'
[ -d {{ $releases_dir }} ] || mkdir {{ $releases_dir }}
git clone --depth 1 {{ $repository }} {{ $new_release_dir }}
- cd {{ $releases_dir }}
+ cd {{ $new_release_dir }}
git reset --hard {{ $commit }}
@endtask