diff options
Diffstat (limited to 'scripts/autogen.sh')
-rwxr-xr-x | scripts/autogen.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/autogen.sh b/scripts/autogen.sh index 05d833b37..c58afbf45 100755 --- a/scripts/autogen.sh +++ b/scripts/autogen.sh @@ -275,6 +275,13 @@ EOF cp -av .git/hooks/pre-commit.sample .git/hooks/pre-commit chmod -c +x .git/hooks/pre-commit fi + if [ -f scripts/git-hooks/commit-msg -a ! -f .git/hooks/commit-msg ] ; then + cat <<EOF >&2 +*** Activating commit log message check hook. *** +EOF + cp -av scripts/git-hooks/commit-msg .git/hooks/commit-msg + chmod -c +x .git/hooks/commit-msg + fi tmp=$(git config --get filter.cleanpo.clean) if [ "$tmp" != "awk '/^\"POT-Creation-Date:/&&!s{s=1;next};!/^#: /{print}'" ] then |