ah!!!
This commit is contained in:
parent
02e777c52f
commit
468e8f1098
|
@ -1,12 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
export GIT_DIR=$(git rev-parse --absolute-git-dir)
|
||||||
|
|
||||||
while read old new refname; do
|
while read old new refname; do
|
||||||
branch=$(git rev-parse --abbrev-ref=strict ${refname})
|
branch=$(git rev-parse --abbrev-ref=strict ${refname})
|
||||||
if [[ $branch == "deploy" ]]; then
|
if [[ $branch == "deploy" ]]; then
|
||||||
|
|
||||||
systemctl --user stop forget
|
systemctl --user stop forget
|
||||||
GIT_WORK_TREE='/home/codl/forget' git checkout -f deploy
|
GIT_WORK_TREE='/home/codl/forget' git checkout -f deploy
|
||||||
|
|
||||||
export GIT_DIR
|
|
||||||
(
|
(
|
||||||
cd /home/codl/forget
|
cd /home/codl/forget
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
Loading…
Reference in New Issue