mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Add hook to check the commit log syntax.
* autogen.sh: Install commit-msg hook for git.
This commit is contained in:
parent
2336b09779
commit
29e96e6b9a
2 changed files with 134 additions and 0 deletions
|
@ -296,6 +296,13 @@ EOF
|
|||
git config --add filter.cleanpo.clean \
|
||||
"awk '/^\"POT-Creation-Date:/&&!s{s=1;next};!/^#: /{print}'"
|
||||
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
|
||||
fi
|
||||
|
||||
echo "Running aclocal -I m4 -I gl/m4 ${ACLOCAL_FLAGS:+$ACLOCAL_FLAGS }..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue