This commit is contained in:
codl 2017-08-07 14:56:18 +02:00
parent 02e777c52f
commit 468e8f1098
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 3 additions and 1 deletions

View File

@ -1,12 +1,14 @@
#!/bin/sh
export GIT_DIR=$(git rev-parse --absolute-git-dir)
while read old new refname; do
branch=$(git rev-parse --abbrev-ref=strict ${refname})
if [[ $branch == "deploy" ]]; then
systemctl --user stop forget
GIT_WORK_TREE='/home/codl/forget' git checkout -f deploy
export GIT_DIR
(
cd /home/codl/forget
source venv/bin/activate