Fix secpick pushing to stable branch

This commit is contained in:
Thong Kuah 2019-07-30 10:51:29 +00:00
parent cab3b77049
commit 96f8a282c6

View file

@ -45,7 +45,7 @@ module Secpick
def git_commands def git_commands
["git fetch #{@options[:remote]} #{stable_branch}", ["git fetch #{@options[:remote]} #{stable_branch}",
"git checkout -B #{source_branch} #{@options[:remote]}/#{stable_branch}", "git checkout -B #{source_branch} #{@options[:remote]}/#{stable_branch} --no-track",
"git cherry-pick #{@options[:sha]}", "git cherry-pick #{@options[:sha]}",
"git push #{@options[:remote]} #{source_branch}", "git push #{@options[:remote]} #{source_branch}",
"git checkout #{original_branch}"] "git checkout #{original_branch}"]