2
0
mirror of https://github.com/codl/forget synced 2025-01-05 19:56:48 +01:00

fix post-receive hook

This commit is contained in:
codl 2017-08-19 13:21:00 +02:00
parent ff358ed64f
commit 8ad6b841c1
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A

View File

@ -12,7 +12,7 @@ while read old new refname; do
(
cd /home/codl/forget
source venv/bin/activate
pip install -r requirements.txt
env -u GIT_DIR -u GIT_WORK_TREE pip install -r requirements.txt
tools/write-version.sh
FLASK_APP='forget.py' flask db upgrade
if [[ $(git diff --name-only ${old}..${new} dodo.py) == 'dodo.py' ]]