From cd906c21f8051aa4cd6442f014c8280ae0c9d9f9 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 30 Jan 2009 08:53:06 +0100 Subject: Use a symbolic link for the pre-commit client-side hook --- autogen.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 06951baa..5b6bf93f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -23,10 +23,10 @@ fi . common/gst-autogen.sh # install pre-commit hook for doing clean commits -if test ! -x .git/hooks/pre-commit; +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 -- cgit