diff options
author | Evan Read <eread@gitlab.com> | 2021-03-05 16:33:49 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2021-03-05 16:33:49 +0300 |
commit | b0b8ec4b97dcaafbe4b9333a4377d5fb5d4f8aa4 (patch) | |
tree | 2ca65a9fa81bfe52cde2026655c0dd6934ea4287 /Rakefile | |
parent | 39564d59249b58b8cfe87e3aedd77961d5b7180c (diff) |
Fetch stable branch before attempting to use it
Diffstat (limited to 'Rakefile')
-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" |