Browse Source

Update to latest best practice for ignore-revs and hooks

pull/928/head
Ross McFarland 3 years ago
parent
commit
51f8eb17f0
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      script/bootstrap

+ 11
- 2
script/bootstrap View File

@ -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 ""


Loading…
Cancel
Save