Add a wrapper script as git pre-commit hook
authorRalph Boehme <slow at samba.org>
Tue, 10 Apr 2018 11:04:27 +0000 (13:04 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 25 Apr 2018 23:09:27 +0000 (01:09 +0200)
commit8649e216650de85cd73eda64caa2e338d59582d5
tree65a7ec5a85a2caafc4ce453682f21a10f40e31da
parenta6fade4e10760284ef56abf45d3fa70038091cbe
Add a wrapper script as git pre-commit hook

When developer mode is enabled, the wrapper script
"script/git-hooks/pre-commit-hook" gets installed as

  .git/hooks/pre-commit

and calls "script/git-hooks/pre-commit-script".

This way we can later modify the "script/git-hooks/pre-commit-script"
without the need to ever change the installed commit hook itself.

Signed-off-by: Ralph Boehme <slow at samba.org>
Reviewed-by: Martin Schwenke <martin at meltin.net>
Reviewed-by: Jeremy Allison <jra at samba.org>
script/git-hooks/pre-commit-hook [new file with mode: 0755]
script/git-hooks/pre-commit-script [new file with mode: 0755]
wscript