then set -e
echo "Updating submodules"
if "${CHINESE}"
- then git submodule set-url edk2 https://gitee.com/mirrors/edk2.git
- git submodule set-url edk2-platforms https://gitee.com/mirrors/edk2-platforms.git
+ then git submodule set-url edk2 https://hub.fastgit.org/tianocore/edk2.git
+ git submodule set-url edk2-platforms https://hub.fastgit.org/tianocore/edk2-platforms.git
git submodule init;git submodule update --depth 1
pushd edk2
- git submodule set-url CryptoPkg/Library/OpensslLib/openssl https://gitee.com/mirrors/openssl.git
- git submodule set-url BaseTools/Source/C/BrotliCompress/brotli https://gitee.com/mirrors/brotli.git
- git submodule set-url UnitTestFrameworkPkg/Library/CmockaLib/cmocka https://gitee.com/strongtz/cmocka.git
- git submodule set-url ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 https://gitee.com/strongtz/berkeley-softfloat-3
- git submodule set-url MdeModulePkg/Library/BrotliCustomDecompressLib/brotli https://gitee.com/mirrors/brotli.git
- git submodule set-url MdeModulePkg/Universal/RegularExpressionDxe/oniguruma https://gitee.com/mirrors/oniguruma.git
+
+ git submodule set-url ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 https://hub.fastgit.org/ucb-bar/berkeley-softfloat-3.git
+ git submodule set-url CryptoPkg/Library/OpensslLib/openssl https://hub.fastgit.org/openssl/openssl.git
+ git submodule set-url BaseTools/Source/C/BrotliCompress/brotli https://hub.fastgit.org/google/brotli.git
+ git submodule set-url UnitTestFrameworkPkg/Library/CmockaLib/cmocka https://git.cryptomilk.org/projects/cmocka.git
+ git submodule set-url ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3 https://hub.fastgit.org/ucb-bar/berkeley-softfloat-3.git
+ git submodule set-url MdeModulePkg/Library/BrotliCustomDecompressLib/brotli https://hub.fastgit.org/google/brotli.git
+ git submodule set-url MdeModulePkg/Universal/RegularExpressionDxe/oniguruma https://hub.fastgit.org/kkos/oniguruma.git
git submodule init;git submodule update
git checkout .gitmodules
popd