Skip to content

Commit 78c8533

Browse files
AgoraSecurityAgora@Ubuntu-dev
authored and
Agora@Ubuntu-dev
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>
1 parent 2402674 commit 78c8533

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
@@ -557,6 +557,7 @@ def commit(message, opts = {})
557557
arr_opts << '--allow-empty' if opts[:allow_empty]
558558
arr_opts << "--author=#{opts[:author]}" if opts[:author]
559559
arr_opts << "--date=#{opts[:date]}" if opts[:date].is_a? String
560+
arr_opts << '--no-verify' if opts[:no_verify]
560561

561562
command('commit', arr_opts)
562563
end

0 commit comments

Comments
 (0)