Submodule support

In the near future we will be using a git submodule  to integrate the Horde Bridge. The updater needs to support downloading submodules so that our users will automatically get them installed.

In this commit all the submodules are automatically updated when you do Kobold updates, and also installed if missing.
This commit is contained in:
Henk
2022-12-21 02:55:05 +01:00
parent 23b2d3a99e
commit bd6717ec3b

View File

@@ -51,6 +51,7 @@ git remote add origin %origin%
git fetch --all git fetch --all
git checkout %branch% -f git checkout %branch% -f
git reset --hard origin/%branch% git reset --hard origin/%branch%
git submodule update --init --recursive
IF %M%==1 umamba.exe install --no-shortcuts -r K:\python\ -n base -f "%~dp0\environments\huggingface.yml" -y --always-copy IF %M%==1 umamba.exe install --no-shortcuts -r K:\python\ -n base -f "%~dp0\environments\huggingface.yml" -y --always-copy
IF %M%==2 umamba.exe install --no-shortcuts -r miniconda3 -n base -f environments\huggingface.yml -y --always-copy IF %M%==2 umamba.exe install --no-shortcuts -r miniconda3 -n base -f environments\huggingface.yml -y --always-copy
IF %M%==3 umamba.exe install --no-shortcuts -r B:\python\ -n base -f "%~dp0\environments\huggingface.yml" -y --always-copy IF %M%==3 umamba.exe install --no-shortcuts -r B:\python\ -n base -f "%~dp0\environments\huggingface.yml" -y --always-copy