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:
@@ -29,8 +29,17 @@ if [ "$ENV" != "production" ]; then
|
||||
python -m pip install -r requirements-dev.txt
|
||||
fi
|
||||
|
||||
if [ ! -L ".git/hooks/pre-commit" ]; then
|
||||
ln -s "$ROOT/.git_hooks_pre-commit" ".git/hooks/pre-commit"
|
||||
if [ -d ".git" ]; then
|
||||
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
|
||||
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user