From 5b8f4f1a6cc9fbf525caa385873a0a668705c3cc Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 28 Oct 2009 23:51:22 +0000 Subject: Setup git hooks properly when a new checkout --- autogen.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autogen.sh b/autogen.sh index 0a713f4..1f7e1eb 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,6 +2,14 @@ set -e +# Some boiler plate to get git setup as expected +if test -d .git; then + if test -f .git/hooks/pre-commit.sample && \ + test ! -f .git/hooks/pre-commit; then + cp -pv .git/hooks/pre-commit.sample .git/hooks/pre-commit + fi +fi + aclocal autoheader automake -a -- cgit v1.2.3