diff options
author | Edward Hervey <bilboed@bilboed.com> | 2009-01-30 08:53:06 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-01-30 08:53:06 +0100 |
commit | cd906c21f8051aa4cd6442f014c8280ae0c9d9f9 (patch) | |
tree | 769f9351474b535566095ec0180307ddeee6ca20 | |
parent | 1c3fb9925274a4b48b6173b054d7cf1511302ea5 (diff) |
Use a symbolic link for the pre-commit client-side hook
-rwxr-xr-x | autogen.sh | 6 | ||||
m--------- | common | 0 |
2 files changed, 3 insertions, 3 deletions
@@ -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 |