From 9b4f434d33599c5d929b38ccb5596a77e52ead0e Mon Sep 17 00:00:00 2001 From: Henk Date: Wed, 21 Dec 2022 03:48:14 +0100 Subject: [PATCH] Submodule support for Linux Adds submodule support for docker and colab, also enables updating again by default. We manually disable this for official releases. --- colabkobold.sh | 2 ++ docker-standalone/docker-helper.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/colabkobold.sh b/colabkobold.sh index 4c41675a..25ccbb52 100644 --- a/colabkobold.sh +++ b/colabkobold.sh @@ -136,6 +136,8 @@ if [ "$init" != "skip" ]; then git reset --hard origin/$(git_default_branch) fi + git submodule update --init --recursive + cd /content/KoboldAI-Client cp -rn stories/* /content/drive/MyDrive/KoboldAI/stories/ diff --git a/docker-standalone/docker-helper.sh b/docker-standalone/docker-helper.sh index 30107e8a..5d738e6c 100755 --- a/docker-standalone/docker-helper.sh +++ b/docker-standalone/docker-helper.sh @@ -1,7 +1,7 @@ #!/bin/bash cd /opt/koboldai -git pull -#./install_requirements.sh cuda + +git pull --recurse-submodules && ./install_requirements.sh cuda if [[ ! -v KOBOLDAI_DATADIR ]];then mkdir /content