Commit 99830bb6f882672159fe53c96667942ce6fe1c1e
1 parent
440f3f38
Exists in
master
and in
4 other branches
Create branch for tag
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
4 deletions
Show diff stats
lib/gitlab/upgrader.rb
... | ... | @@ -44,14 +44,11 @@ module Gitlab |
44 | 44 | last_tag = git_tags.last.match(/v\d\.\d\.\d/).to_s |
45 | 45 | end |
46 | 46 | |
47 | - def git_las_tags | |
48 | - end | |
49 | - | |
50 | 47 | def update_commands |
51 | 48 | { |
52 | 49 | "Stash changed files" => "git stash", |
53 | 50 | "Get latest code" => "git fetch", |
54 | - "Switch to new version" => "git checkout v#{latest_version}", | |
51 | + "Switch to new version" => "git checkout -b v#{latest_version}", | |
55 | 52 | "Install gems" => "bundle", |
56 | 53 | "Migrate DB" => "bundle exec rake db:migrate RAILS_ENV=production", |
57 | 54 | "Recompile assets" => "bundle exec rake assets:clean assets:precompile RAILS_ENV=production", | ... | ... |