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

View File

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