.git repos do not have a working tree

This commit is contained in:
Matthew Connelly 2015-11-15 23:57:22 +00:00
parent 8e1c4a8e89
commit 690f959448
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ cat > /dev/null
BASE=/usr/home/sites; export BASE; APP=blogalba; export APP
START_OPTS="--workers 1"; export START_OPTS
git --git-dir $BASE/$APP/.git --work-tree $BASE/$APP pull
git --git-dir $BASE/$APP.mirror.git/.git --work-tree $BASE/$APP.mirror.git fetch
git --git-dir $BASE/$APP.mirror.git/.git --work-tree $BASE/$APP.mirror.git push
git --git-dir $BASE/$APP.mirror.git fetch
git --git-dir $BASE/$APP.mirror.git push
[ ! -z "$(find $BASE/$APP -type d -name .git -prune -o -type f -mmin -1 -print|egrep '(p(ost|age)s/|lib$)')" ] || exit
echo "Restarting $APP"; $BASE/$APP/start