Skip to content

Commit a2ba0e5

Browse files
committed
improve with key id
Signed-off-by: othmane399 <othmane.elmassari@doctolib.com>
1 parent 9bc69ad commit a2ba0e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/git/lib.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ def remove(path = '.', opts = {})
642642
# :date
643643
# :no_verify
644644
# :allow_empty_message
645-
# :sign
645+
# :gpg_sign
646646
#
647647
# @param [String] message the commit message to be used
648648
# @param [Hash] opts the commit options to be used
@@ -656,7 +656,7 @@ def commit(message, opts = {})
656656
arr_opts << "--date=#{opts[:date]}" if opts[:date].is_a? String
657657
arr_opts << '--no-verify' if opts[:no_verify]
658658
arr_opts << '--allow-empty-message' if opts[:allow_empty_message]
659-
arr_opts << '--gpg-sign' if opts[:sign]
659+
arr_opts << '--gpg-sign' if opts[:gpg_sign] == true || "--gpg-sign=#{opts[:gpg_sign]}" if opts[:gpg_sign]
660660

661661
command('commit', arr_opts)
662662
end

0 commit comments

Comments
 (0)