mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #8542: test for .git existence before moving pre-commit hook
This commit is contained in:
@ -5,10 +5,13 @@ mkdir -p m4
|
|||||||
|
|
||||||
HOOKS_DIR="../.git/hooks"
|
HOOKS_DIR="../.git/hooks"
|
||||||
# install pre-commit hook for doing clean commits
|
# install pre-commit hook for doing clean commits
|
||||||
if test ! \( -x ${HOOKS_DIR}/pre-commit -a -L ${HOOKS_DIR}/pre-commit \);
|
if [ -d "$HOOKS_DIR" ];
|
||||||
then
|
then
|
||||||
rm -f ${HOOKS_DIR}/pre-commit
|
if test ! \( -x ${HOOKS_DIR}/pre-commit -a -L ${HOOKS_DIR}/pre-commit \);
|
||||||
ln -s ${HOOKS_DIR}/pre-commit.sample ${HOOKS_DIR}/pre-commit
|
then
|
||||||
|
rm -f ${HOOKS_DIR}/pre-commit
|
||||||
|
ln -s ${HOOKS_DIR}/pre-commit.sample ${HOOKS_DIR}/pre-commit
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
autoreconf --force --install --verbose -Wall -I m4
|
autoreconf --force --install --verbose -Wall -I m4
|
||||||
|
Reference in New Issue
Block a user