Commit 99830bb6f882672159fe53c96667942ce6fe1c1e

Authored by Dmitriy Zaporozhets
1 parent 440f3f38

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,14 +44,11 @@ module Gitlab
44 last_tag = git_tags.last.match(/v\d\.\d\.\d/).to_s 44 last_tag = git_tags.last.match(/v\d\.\d\.\d/).to_s
45 end 45 end
46 46
47 - def git_las_tags  
48 - end  
49 -  
50 def update_commands 47 def update_commands
51 { 48 {
52 "Stash changed files" => "git stash", 49 "Stash changed files" => "git stash",
53 "Get latest code" => "git fetch", 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 "Install gems" => "bundle", 52 "Install gems" => "bundle",
56 "Migrate DB" => "bundle exec rake db:migrate RAILS_ENV=production", 53 "Migrate DB" => "bundle exec rake db:migrate RAILS_ENV=production",
57 "Recompile assets" => "bundle exec rake assets:clean assets:precompile RAILS_ENV=production", 54 "Recompile assets" => "bundle exec rake assets:clean assets:precompile RAILS_ENV=production",