summaryrefslogtreecommitdiff
path: root/lib/gitlab/upgrader.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-23 18:01:51 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-23 18:01:51 +0200
commit088f0602b9816efc0035038793cc3f9c6f095b5a (patch)
treea2e63497ec7a15d5dbff256a4d9637177cd71d4d /lib/gitlab/upgrader.rb
parent44b1eadf087d793bac66ed50ba3ccc5e5739a081 (diff)
downloadgitlab-ce-088f0602b9816efc0035038793cc3f9c6f095b5a.tar.gz
Fix upgrader
It created branch based on current branch which is an old version Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/gitlab/upgrader.rb')
-rw-r--r--lib/gitlab/upgrader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/upgrader.rb b/lib/gitlab/upgrader.rb
index 1de681a97ff..859923cb563 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",