validate: Properly set the pre commit hook

This commit is contained in:
Thibault Saunier 2014-05-07 09:50:28 +02:00
parent 7d55065277
commit 08898ff219

View file

@ -25,10 +25,10 @@ fi
. common/gst-autogen.sh
# install pre-commit hook for doing clean commits
if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \);
if test ! \( -x ../.git/hooks/pre-commit -a -L ../.git/hooks/pre-commit \);
then
rm -f .git/hooks/pre-commit
ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit
rm -f ../.git/hooks/pre-commit
ln -s ../../validate/common/hooks/pre-commit.hook ../.git/hooks/pre-commit
fi
# GNU gettext automake support doesn't get along with git.