Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2021-03-05 16:33:50 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2021-03-05 16:33:50 +0300
commitae469ee8ec1c2aeed23fcf4dca0b4e875f4f9a0f (patch)
treedb73a153f9223d7c1aeff102c418a56c0b4fe113
parent28f655738bc40757074fe70ed4729a79820f54f6 (diff)
parentb0b8ec4b97dcaafbe4b9333a4377d5fb5d4f8aa4 (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--Rakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 6bf7b631..e855b642 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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"