1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Update to latest best practice for ignore-revs and hooks

This commit is contained in:
Ross McFarland
2022-09-06 12:49:37 -07:00
parent d54baf0ea6
commit 51f8eb17f0

View File

@@ -29,8 +29,17 @@ if [ "$ENV" != "production" ]; then
python -m pip install -r requirements-dev.txt python -m pip install -r requirements-dev.txt
fi fi
if [ ! -L ".git/hooks/pre-commit" ]; then if [ -d ".git" ]; then
ln -s "$ROOT/.git_hooks_pre-commit" ".git/hooks/pre-commit" if [ -f ".git-blame-ignore-revs" ]; then
echo ""
echo "Setting blame.ignoreRevsFile to .git-blame-ingore-revs"
git config --local blame.ignoreRevsFile .git-blame-ignore-revs
fi
if [ ! -L ".git/hooks/pre-commit" ]; then
echo ""
echo "Installing pre-commit hook"
ln -s "$ROOT/.git_hooks_pre-commit" ".git/hooks/pre-commit"
fi
fi fi
echo "" echo ""