fixing setup-git so build continues if ./git/hooks does not exist.

This commit is contained in:
csine-nflx 2020-08-26 01:38:17 -07:00 committed by Hossein Shafagh
parent 1fc2e29ab8
commit 75eaea3aad
1 changed files with 7 additions and 4 deletions

View File

@ -49,10 +49,13 @@ reset-db:
cd lemur && lemur db upgrade
setup-git:
@echo "--> Installing git hooks"
git config branch.autosetuprebase always
cd .git/hooks && ln -sf ../../hooks/* ./
@echo ""
if [ -d .git/hooks ]; then \
@echo "--> Installing git hooks"; \
git config branch.autosetuprebase always; \
cd .git/hooks && ln -sf ../../hooks/* ./; \
@echo ""; \
fi
clean:
@echo "--> Cleaning static cache"