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 |     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 "" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user