diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-05-16 22:43:39 +0200 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-05-16 22:43:39 +0200 |
commit | 034d8ced8836f6380e758531d114f252dd13a666 (patch) | |
tree | cab7094dd820d6c3a299f3191820c57228484766 /bin/secpick | |
parent | ddc29487a71d6557c6b1e7ca4e67f7a99384777b (diff) | |
parent | 790fee0dc724c734c7430f773ae8f7f91df6bf2b (diff) | |
download | gitlab-ce-winh-cleanup-changes_tab_vue_refactoring.tar.gz |
Remove unrelated changes from changes_tab_vue_refactoringwinh-cleanup-changes_tab_vue_refactoring
Diffstat (limited to 'bin/secpick')
-rwxr-xr-x | bin/secpick | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/secpick b/bin/secpick index 76ae231e913..5029fe57cfe 100755 --- a/bin/secpick +++ b/bin/secpick @@ -5,7 +5,6 @@ require 'rainbow/refinement' using Rainbow BRANCH_PREFIX = 'security'.freeze -STABLE_BRANCH_SUFFIX = 'stable'.freeze REMOTE = 'dev'.freeze options = { version: nil, branch: nil, sha: nil } @@ -37,9 +36,9 @@ abort("Missing options. Use #{$0} --help to see the list of options available".r abort("Wrong version format #{options[:version].bold}".red) unless options[:version] =~ /\A\d*\-\d*\Z/ branch = [BRANCH_PREFIX, options[:branch], options[:version]].join('-').freeze -stable_branch = "#{options[:version]}-#{STABLE_BRANCH_SUFFIX}".freeze +stable_branch = "#{BRANCH_PREFIX}-#{options[:version]}".freeze -command = "git checkout #{stable_branch} && git pull #{REMOTE} #{stable_branch} && git checkout -B #{branch} && git cherry-pick #{options[:sha]} && git push #{REMOTE} #{branch}" +command = "git fetch #{REMOTE} #{stable_branch} && git checkout #{stable_branch} && git pull #{REMOTE} #{stable_branch} && git checkout -B #{branch} && git cherry-pick #{options[:sha]} && git push #{REMOTE} #{branch}" _stdin, stdout, stderr = Open3.popen3(command) |