From 9fbe27d9d6dc6e4530ce904d35c74326e415e34e Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 5 Jan 2012 19:22:03 +0100 Subject: [PATCH] autogen.sh: enable git pre-commit --- autogen.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autogen.sh b/autogen.sh index fdbff66c4..582a8a3af 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,6 +2,12 @@ set -e +if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then + cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ + chmod +x .git/hooks/pre-commit && \ + echo "Activated pre-commit hook." +fi + gtkdocize autoreconf --install --symlink -- 2.30.2