summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-01-30 08:50:53 +0100
committerEdward Hervey <bilboed@bilboed.com>2009-01-30 08:50:53 +0100
commit35d4c5d498ab0f9ec03049a6f7900ddde43e90d4 (patch)
treebe8b2b626f1e1122060ea2e249b107a5e24235f0
parent2bb875acaddf22037f0a5c80255b6428cb64c433 (diff)
Use a symbolic link for the pre-commit client-side hook
-rwxr-xr-xautogen.sh6
m---------common0
2 files changed, 3 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh
index 88416f05..68b924ce 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
diff --git a/common b/common
-Subproject 3f4e9974603807e7615c3a6b8821542abce0be1
+Subproject f7bd42d4fa7f9b976fe5e697ff914e25f25e885