summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-21 00:09:18 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-21 00:09:18 +0000
commit1ccf61bdccd3f0cbcabd7fe335542014f465f46b (patch)
treef6eb90ccf27bb2193251d1617e7b655429eb2ac6 /bin
parent68f1860e6f1f9e8441c434f4e62238c359ce8c7c (diff)
downloadgitlab-ce-1ccf61bdccd3f0cbcabd7fe335542014f465f46b.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'bin')
-rwxr-xr-xbin/secpick3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/secpick b/bin/secpick
index 3609567249e..fd3de2756ec 100755
--- a/bin/secpick
+++ b/bin/secpick
@@ -120,7 +120,7 @@ module Secpick
options[:branch] = branch
end
- opts.on('-s', '--sha abcd', 'SHA or SHA range to cherry pick') do |sha|
+ opts.on('-s', '--sha abcd', 'SHA or SHA range to cherry pick (optional, defaults to current)') do |sha|
options[:sha] = sha
end
@@ -155,6 +155,7 @@ module Secpick
parser.parse!
+ options[:sha] ||= `git rev-parse HEAD`
options[:branch] ||= `git rev-parse --abbrev-ref HEAD`
options[:remote] ||= DEFAULT_REMOTE