fix submodules during clone

This commit is contained in:
oxeo0 2025-05-06 21:17:24 +02:00
parent 131a0e0ba5
commit 3e4d48535f
2 changed files with 6 additions and 2 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
repo/
servable/

View file

@ -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