diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2cb457b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +repo/ +servable/ diff --git a/entry.sh b/entry.sh index c633bba..2daba43 100644 --- a/entry.sh +++ b/entry.sh @@ -12,9 +12,11 @@ while true; do git config --global --add http.proxy socks5h://localhost:9050 if [ -d "/repo/.git" ]; then git restore . - git pull origin "${BRANCH}" --recurse-submodules + git pull origin "${BRANCH}" --recursive --shallow-submodules + git submodule update --recursive --remote else - git clone -b "${BRANCH}" "${REPO_URL}" /repo --recursive + git clone -b "${BRANCH}" "${REPO_URL}" /repo --recursive --shallow-submodules --depth=1 + git submodule update --recursive --remote fi; sed -i "s/^site_url:.*//g" /repo/mkdocs.yml