summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/secpick2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/secpick b/bin/secpick
index 5caa0fb66b5..c4c7aadc92b 100755
--- a/bin/secpick
+++ b/bin/secpick
@@ -38,7 +38,7 @@ abort("Wrong version format #{options[:version].bold}".red) unless options[:vers
branch = [BRANCH_PREFIX, options[:branch], options[:version]].join('-').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)