diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-21 00:09:18 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-21 00:09:18 +0000 |
commit | 1ccf61bdccd3f0cbcabd7fe335542014f465f46b (patch) | |
tree | f6eb90ccf27bb2193251d1617e7b655429eb2ac6 /bin | |
parent | 68f1860e6f1f9e8441c434f4e62238c359ce8c7c (diff) | |
download | gitlab-ce-1ccf61bdccd3f0cbcabd7fe335542014f465f46b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/secpick | 3 |
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 |