From 088f0602b9816efc0035038793cc3f9c6f095b5a Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 23 Dec 2013 18:01:51 +0200 Subject: [PATCH] Fix upgrader It created branch based on current branch which is an old version Signed-off-by: Dmitriy Zaporozhets --- lib/gitlab/upgrader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/upgrader.rb b/lib/gitlab/upgrader.rb index 1de681a97..859923cb5 100644 --- a/lib/gitlab/upgrader.rb +++ b/lib/gitlab/upgrader.rb @@ -51,7 +51,7 @@ module Gitlab { "Stash changed files" => "git stash", "Get latest code" => "git fetch", - "Switch to new version" => "git checkout -b v#{latest_version}", + "Switch to new version" => "git checkout v#{latest_version}", "Install gems" => "bundle", "Migrate DB" => "bundle exec rake db:migrate RAILS_ENV=production", "Recompile assets" => "bundle exec rake assets:clean assets:precompile RAILS_ENV=production", -- 2.11.0