diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-13 15:22:27 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-12-13 15:22:27 +0200 |
commit | 99830bb6f882672159fe53c96667942ce6fe1c1e (patch) | |
tree | 8307bb303c268c06c63aa188ca47e40cd95da9ea /lib/gitlab/upgrader.rb | |
parent | 440f3f384f1ef03a8911b6d6ff3e4a21c3308adf (diff) | |
download | gitlab-ce-99830bb6f882672159fe53c96667942ce6fe1c1e.tar.gz |
Create branch for tag
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/gitlab/upgrader.rb')
-rw-r--r-- | lib/gitlab/upgrader.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/gitlab/upgrader.rb b/lib/gitlab/upgrader.rb index a7e07fca351..09e25b923f1 100644 --- a/lib/gitlab/upgrader.rb +++ b/lib/gitlab/upgrader.rb @@ -44,14 +44,11 @@ module Gitlab last_tag = git_tags.last.match(/v\d\.\d\.\d/).to_s end - def git_las_tags - end - def update_commands { "Stash changed files" => "git stash", "Get latest code" => "git fetch", - "Switch to new version" => "git checkout v#{latest_version}", + "Switch to new version" => "git checkout -b 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", |