fix entry.sh

This commit is contained in:
nihilist 2025-05-07 14:07:37 +02:00
parent 3e4d48535f
commit 4f5c448450

View file

@ -11,9 +11,13 @@ while true; do
git config --global --add safe.directory /repo
git config --global --add http.proxy socks5h://localhost:9050
if [ -d "/repo/.git" ]; then
git restore .
git pull origin "${BRANCH}" --recursive --shallow-submodules
git submodule update --recursive --remote
git stash
#git submodule foreach 'git stash; git reset --hard'
#git submodule foreach 'git checkout main ; git pull'
#git restore .
git pull origin "${BRANCH}"
git submodule update --force --recursive --remote --depth=1
git submodule foreach 'git stash ; git checkout main ; git pull'
else
git clone -b "${BRANCH}" "${REPO_URL}" /repo --recursive --shallow-submodules --depth=1
git submodule update --recursive --remote