diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2021-03-05 16:33:50 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2021-03-05 16:33:50 +0300 |
commit | ae469ee8ec1c2aeed23fcf4dca0b4e875f4f9a0f (patch) | |
tree | db73a153f9223d7c1aeff102c418a56c0b4fe113 | |
parent | 28f655738bc40757074fe70ed4729a79820f54f6 (diff) | |
parent | b0b8ec4b97dcaafbe4b9333a4377d5fb5d4f8aa4 (diff) |
Merge branch 'eread/fetch-stable-branch-first' into 'master'
Fetch stable branch before attempting to use it
See merge request gitlab-org/gitlab-docs!1574
-rw-r--r-- | Rakefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -210,11 +210,11 @@ namespace :release do mr_title = "Update #{version} dropdown to match that of #{current_version}" branch_name = "update-#{version.tr('.', '-')}-for-release-#{current_version.tr('.', '-')}" - puts "=> Create a new branch off of the online version" - `git checkout -b #{branch_name} #{version}` - - puts "=> Fetch version origin and reset to current" + puts "=> Fetch #{version} stable branch" `git fetch origin #{version}` + + puts "=> Create a new branch off of the online version" + `git checkout -b #{branch_name} origin/#{version}` `git reset --hard origin/#{version}` puts "=> Copy the versions.yaml content from the release-#{current_version} branch" |