How to disable git commit --no-verify

3,265 views
Skip to first unread message

praveenm

unread,
Jun 4, 2015, 2:21:42 AM6/4/15
to repo-d...@googlegroups.com
Dear All,

We have enabled pre hook scripts to verify the commit message.

Sometimes developer will use --no-verify option to bypass the hooks.

how to disable
--no-verify
.

Thanks in advance.


Alex Blewitt

unread,
Jun 4, 2015, 2:52:58 AM6/4/15
to praveenm, repo-d...@googlegroups.com
Use a server side verification not a client side verification. There are plugins and examples that do this already using the listener eg 

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

praveenm mulimani

unread,
Jun 5, 2015, 12:06:29 AM6/5/15
to Alex Blewitt, repo-d...@googlegroups.com
Thanks Alex,

I have disabled no-verify option in git source & recompiled git.

Thanks 
--
Praveen M
9986069592

Alex Blewitt

unread,
Jun 5, 2015, 2:55:26 AM6/5/15
to praveenm mulimani, repo-d...@googlegroups.com
Good idea. You also recompiled the Linux kernel to disable deleting files as well, I assume?


Sent from my iPhat 6

Debashish Ghosh

unread,
Feb 13, 2017, 1:54:02 AM2/13/17
to Repo and Gerrit Discussion, alex.b...@gmail.com
Sadly this has messed up with the git rebase command because rebase also uses --no-verify at some point. :(
Reply all
Reply to author
Forward
0 new messages