diff --git a/hexo/start.sh b/hexo/start.sh index bde8e91..9c52185 100644 --- a/hexo/start.sh +++ b/hexo/start.sh @@ -15,6 +15,9 @@ hexo server --cwd /hexo -p 80 > /logs/hexo.log 2>&1 & while true; do - cd /hexo; git pull > /dev/null 2>&1 ; + cd /hexo; + git fetch --all; + git reset --hard origin/$BRANCH; + git pull > /dev/null 2>&1 ; sleep 5; done \ No newline at end of file