summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPavel Shutsin <pshutsin@gitlab.com>2019-02-14 09:24:30 +0000
committerPavel Shutsin <pshutsin@gitlab.com>2019-02-14 09:24:30 +0000
commitbba8dc7d6725bbe30625d47f73ecaf59f6072e3b (patch)
tree978f3962e3a7d26a7301843af807f98655a1d163 /bin
parent4b2ba1a70e72d3e53a696d7c8c0ca0cedf0f95a7 (diff)
downloadgitlab-ce-bba8dc7d6725bbe30625d47f73ecaf59f6072e3b.tar.gz
Simplify bin/secpick git commands
Diffstat (limited to 'bin')
-rwxr-xr-xbin/secpick4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/secpick b/bin/secpick
index 8f956d300a7..99f4e871f72 100755
--- a/bin/secpick
+++ b/bin/secpick
@@ -45,9 +45,7 @@ module Secpick
def git_commands
["git fetch #{@options[:remote]} #{stable_branch}",
- "git checkout #{stable_branch}",
- "git pull #{@options[:remote]} #{stable_branch}",
- "git checkout -B #{source_branch}",
+ "git checkout -B #{source_branch} #{@options[:remote]}/#{stable_branch}",
"git cherry-pick #{@options[:sha]}",
"git push #{@options[:remote]} #{source_branch}",
"git checkout #{original_branch}"]