Commit 58472180b358dc893e2361908a7965d1e9185ddc

Authored by Dmitriy Zaporozhets
1 parent 6bc3b5df

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 51 {
52 52 "Stash changed files" => "git stash",
53 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 55 "Install gems" => "bundle",
56 56 "Migrate DB" => "bundle exec rake db:migrate RAILS_ENV=production",
57 57 "Recompile assets" => "bundle exec rake assets:clean assets:precompile RAILS_ENV=production",
... ...