修正一些更新脚本

This commit is contained in:
XTer 2024-03-07 15:44:46 +08:00
parent 11495db9eb
commit 11854db790
2 changed files with 9 additions and 3 deletions

View File

@ -14,7 +14,10 @@ set PATH=%GIT_PATH%;%PATH%
:: 切换到仓库目录
cd /d %REPO_PATH%
:: 执行 git pull 更新本地仓库
echo 更新所有子模块
git submodule update --init --recursive
echo 执行 git pull 更新本地仓库
git stash
git pull https://github.com/X-T-E-R/GPT-SoVITS-Inference.git main

View File

@ -14,10 +14,13 @@ set PATH=%GIT_PATH%;%PATH%
:: 切换到仓库目录
cd /d %REPO_PATH%
:: 执行 git pull 更新本地仓库
echo 强制覆盖所有子模块
git submodule update --init --recursive
git submodule foreach --recursive "git fetch origin && git reset --hard origin/$(git rev-parse --abbrev-ref HEAD)"
echo 执行 git pull 更新本地仓库
git fetch https://github.com/X-T-E-R/GPT-SoVITS-Inference.git main
git reset --hard FETCH_HEAD
git submodule update --init --recursive
echo.
echo 更新完成!