Commit 088f0602b9816efc0035038793cc3f9c6f095b5a

Authored by Dmitriy Zaporozhets
1 parent 44b1eadf

Fix upgrader

It created branch based on current branch which is an old version

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/gitlab/upgrader.rb
@@ -51,7 +51,7 @@ module Gitlab @@ -51,7 +51,7 @@ module Gitlab
51 { 51 {
52 "Stash changed files" => "git stash", 52 "Stash changed files" => "git stash",
53 "Get latest code" => "git fetch", 53 "Get latest code" => "git fetch",
54 - "Switch to new version" => "git checkout -b v#{latest_version}", 54 + "Switch to new version" => "git checkout v#{latest_version}",
55 "Install gems" => "bundle", 55 "Install gems" => "bundle",
56 "Migrate DB" => "bundle exec rake db:migrate RAILS_ENV=production", 56 "Migrate DB" => "bundle exec rake db:migrate RAILS_ENV=production",
57 "Recompile assets" => "bundle exec rake assets:clean assets:precompile RAILS_ENV=production", 57 "Recompile assets" => "bundle exec rake assets:clean assets:precompile RAILS_ENV=production",