Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hotfix: do branch update *always* on merge

  • Loading branch information...
commit f4911f591ce7e41a146a87150c6922825b4c27d6 1 parent 880e0c5
@xiongchiamiov xiongchiamiov authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 hotfix.rb
View
7 hotfix.rb
@@ -63,9 +63,6 @@
if ARGV[1]
hotfix = BRANCH_PREFIX + ARGV[1]
- # Checkout the branch to make sure we have it locally.
- Git::run_safe("git checkout \"#{hotfix}\"")
- Git::run_safe("git rebase --preserve-merges origin/#{hotfix}")
else
hotfix = Git::current_branch
end
@@ -74,6 +71,10 @@
description = Github::get_pull_request_description_from_api(hotfix, 'stable')
+ # Checkout the branch to make sure we have it locally.
+ Git::run_safe("git checkout \"#{hotfix}\"")
+ Git::run_safe("git rebase --preserve-merges origin/#{hotfix}")
+
# Merge into stable
Git::run_safe("git checkout stable")
# pull the latest changes and rebase the unpushed commits if any.
Please sign in to comment.
Something went wrong with that request. Please try again.