Skip to content

Commit edd2c1f

Browse files
committed
Add no verify for commit
In git commit, add: -n, --no-verify This option bypasses the pre-commit and commit-msg hooks. See also githooks(5). Signed-off-by: Agora@Ubuntu-dev <filter@agora-security.com> Signed-off-by: Agora Security <github@agora-security.com>
1 parent 9043daf commit edd2c1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@ def commit(message, opts = {})
570570
arr_opts << '--allow-empty' if opts[:allow_empty]
571571
arr_opts << "--author=#{opts[:author]}" if opts[:author]
572572
arr_opts << "--date=#{opts[:date]}" if opts[:date].is_a? String
573+
arr_opts << '--no-verify' if opts[:no_verify]
573574

574575
command('commit', arr_opts)
575576
end

0 commit comments

Comments
 (0)