actually just use a clone instead
This commit is contained in:
parent
2cc98cb11b
commit
c716dcb35d
|
@ -6,14 +6,14 @@ 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
|
||||||
|
|
||||||
#export GIT_WORK_TREE="/tmp/forget_$RANDOM"
|
cd "$HOME/forget"
|
||||||
#mkdir -p $GIT_WORK_TREE
|
|
||||||
#git checkout deploy
|
|
||||||
|
|
||||||
cd /home/codl/forget
|
(
|
||||||
|
unset GIT_DIR
|
||||||
#(cd $GIT_WORK_TREE; git archive deploy) | tar -x
|
unset GIT_WORK_TREE
|
||||||
git archive deploy | tar -x
|
git checkout deploy
|
||||||
|
git reset --hard upstream/deploy
|
||||||
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
@ -28,7 +28,6 @@ while read old new refname; do
|
||||||
doit
|
doit
|
||||||
)
|
)
|
||||||
systemctl --user restart forget
|
systemctl --user restart forget
|
||||||
#rm -rf $GIT_WORK_TREE
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue