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:
authorEvan Read <eread@gitlab.com>2021-03-05 16:33:49 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2021-03-05 16:33:49 +0300
commitb0b8ec4b97dcaafbe4b9333a4377d5fb5d4f8aa4 (patch)
tree2ca65a9fa81bfe52cde2026655c0dd6934ea4287 /Rakefile
parent39564d59249b58b8cfe87e3aedd77961d5b7180c (diff)
Fetch stable branch before attempting to use it
Diffstat (limited to 'Rakefile')
-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"