From ac9a39b3cf12f75f9dbb1fd860c9c618f4462a2d Mon Sep 17 00:00:00 2001 From: XTer Date: Sat, 9 Mar 2024 00:07:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80=E4=BA=9Bba?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0 一键启动脚本/0 一键更新项目.bat | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/0 一键启动脚本/0 一键更新项目.bat b/0 一键启动脚本/0 一键更新项目.bat index c363fd53..d87cf8af 100644 --- a/0 一键启动脚本/0 一键更新项目.bat +++ b/0 一键启动脚本/0 一键更新项目.bat @@ -2,25 +2,23 @@ CHCP 65001 @echo off setlocal -:: 设置 PortableGit 的路径 -set GIT_PATH=../PortableGit/bin :: 设置需要同步的本地仓库路径 set REPO_PATH=../ -:: 添加 PortableGit 到 PATH,以便可以执行 git 命令 -set PATH=%GIT_PATH%;%PATH% - :: 切换到仓库目录 cd /d %REPO_PATH% +:: 设置 PortableGit 的路径 +set GIT_PATH=PortableGit/bin + echo 更新所有子模块 -git submodule update --init --recursive +"%GIT_PATH%\git.exe" submodule update --init --recursive echo 执行 git pull 更新本地仓库 -git stash -git pull https://github.com/X-T-E-R/GPT-SoVITS-Inference.git main +"%GIT_PATH%\git.exe" stash +"%GIT_PATH%\git.exe" pull https://github.com/X-T-E-R/GPT-SoVITS-Inference.git main echo. echo 更新完成! -pause \ No newline at end of file +pause