diff --git a/autogen.sh b/autogen.sh index f18bebb0dd..e4a5af5341 100755 --- a/autogen.sh +++ b/autogen.sh @@ -25,8 +25,8 @@ fi # install pre-commit hook for doing clean commits if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \); then - cp common/hooks/pre-commit.hook .git/hooks/pre-commit - chmod +x .git/hooks/pre-commit + rm -f .git/hooks/pre-commit + ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit fi