diff --git a/deploy.sh b/deploy.sh index f49734d..830a2e6 100755 --- a/deploy.sh +++ b/deploy.sh @@ -4,7 +4,9 @@ BLOGDIR=/var/www/myblog cd $BLOGDIR -/usr/bin/git pull origin master --force +/usr/bin/git fetch --all +/usr/bin/git reset --hard origin/master +/usr/bin/git pull /usr/bin/git submodule update --init --recursive /usr/bin/hugo --gc --minify