validate: Properly set the pre commit hook
This commit is contained in:
parent
7d55065277
commit
08898ff219
@ -25,10 +25,10 @@ fi
|
|||||||
. common/gst-autogen.sh
|
. common/gst-autogen.sh
|
||||||
|
|
||||||
# install pre-commit hook for doing clean commits
|
# 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
|
then
|
||||||
rm -f .git/hooks/pre-commit
|
rm -f ../.git/hooks/pre-commit
|
||||||
ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit
|
ln -s ../../validate/common/hooks/pre-commit.hook ../.git/hooks/pre-commit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# GNU gettext automake support doesn't get along with git.
|
# GNU gettext automake support doesn't get along with git.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user