Skip to content

Commit

Permalink
improve with key id
Browse files Browse the repository at this point in the history
Signed-off-by: othmane399 <othmane.elmassari@doctolib.com>
  • Loading branch information
othmane399 committed Apr 27, 2021
1 parent 9bc69ad commit a2ba0e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/git/lib.rb
Expand Up @@ -642,7 +642,7 @@ def remove(path = '.', opts = {})
# :date
# :no_verify
# :allow_empty_message
# :sign
# :gpg_sign
#
# @param [String] message the commit message to be used
# @param [Hash] opts the commit options to be used
Expand All @@ -656,7 +656,7 @@ def commit(message, opts = {})
arr_opts << "--date=#{opts[:date]}" if opts[:date].is_a? String
arr_opts << '--no-verify' if opts[:no_verify]
arr_opts << '--allow-empty-message' if opts[:allow_empty_message]
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]

command('commit', arr_opts)
end
Expand Down

0 comments on commit a2ba0e5

Please sign in to comment.