We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bc69ad commit a2ba0e5Copy full SHA for a2ba0e5
lib/git/lib.rb
@@ -642,7 +642,7 @@ def remove(path = '.', opts = {})
642
# :date
643
# :no_verify
644
# :allow_empty_message
645
- # :sign
+ # :gpg_sign
646
#
647
# @param [String] message the commit message to be used
648
# @param [Hash] opts the commit options to be used
@@ -656,7 +656,7 @@ def commit(message, opts = {})
656
arr_opts << "--date=#{opts[:date]}" if opts[:date].is_a? String
657
arr_opts << '--no-verify' if opts[:no_verify]
658
arr_opts << '--allow-empty-message' if opts[:allow_empty_message]
659
- arr_opts << '--gpg-sign' if opts[:sign]
+ arr_opts << '--gpg-sign' if opts[:gpg_sign] == true || "--gpg-sign=#{opts[:gpg_sign]}" if opts[:gpg_sign]
660
661
command('commit', arr_opts)
662
end
0 commit comments