Merge pull request #3106 from Netflix/dev_branch

fixing setup-git so build continues if ./git/hooks does not exist.
This commit is contained in:
Chad S 2020-08-26 10:47:04 -07:00 committed by GitHub
commit 9af8d63f11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -50,8 +50,10 @@ reset-db:
setup-git: setup-git:
@echo "--> Installing git hooks" @echo "--> Installing git hooks"
git config branch.autosetuprebase always if [ -d .git/hooks ]; then \
cd .git/hooks && ln -sf ../../hooks/* ./ git config branch.autosetuprebase always; \
cd .git/hooks && ln -sf ../../hooks/* ./; \
fi
@echo "" @echo ""
clean: clean: