fixing setup-git so build continues if ./git/hooks does not exist.
This commit is contained in:
parent
1fc2e29ab8
commit
75eaea3aad
11
Makefile
11
Makefile
|
@ -49,10 +49,13 @@ reset-db:
|
||||||
cd lemur && lemur db upgrade
|
cd lemur && lemur db upgrade
|
||||||
|
|
||||||
setup-git:
|
setup-git:
|
||||||
@echo "--> Installing git hooks"
|
if [ -d .git/hooks ]; then \
|
||||||
git config branch.autosetuprebase always
|
@echo "--> Installing git hooks"; \
|
||||||
cd .git/hooks && ln -sf ../../hooks/* ./
|
git config branch.autosetuprebase always; \
|
||||||
@echo ""
|
cd .git/hooks && ln -sf ../../hooks/* ./; \
|
||||||
|
@echo ""; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "--> Cleaning static cache"
|
@echo "--> Cleaning static cache"
|
||||||
|
|
Loading…
Reference in New Issue