recursive clone

This commit is contained in:
nihilist 2025-05-06 18:45:10 +02:00
parent 1b4fb6aaa9
commit 131a0e0ba5

View file

@ -12,9 +12,9 @@ while true; do
git config --global --add http.proxy socks5h://localhost:9050 git config --global --add http.proxy socks5h://localhost:9050
if [ -d "/repo/.git" ]; then if [ -d "/repo/.git" ]; then
git restore . git restore .
git pull origin "${BRANCH}" git pull origin "${BRANCH}" --recurse-submodules
else else
git clone -b "${BRANCH}" "${REPO_URL}" /repo git clone -b "${BRANCH}" "${REPO_URL}" /repo --recursive
fi; fi;
sed -i "s/^site_url:.*//g" /repo/mkdocs.yml sed -i "s/^site_url:.*//g" /repo/mkdocs.yml