From f69f9112f0f0a526be9d0bed0007b57ca806312c Mon Sep 17 00:00:00 2001
From: strongtz <strongtz@yeah.net>
Date: Fri, 22 Jan 2021 14:09:35 +0000
Subject: [PATCH] Fix submodule cloning for Chinese users

---
 build.sh | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/build.sh b/build.sh
index 73c1346..aa9f0fb 100755
--- a/build.sh
+++ b/build.sh
@@ -62,16 +62,18 @@ if ! [ -f edk2/edksetup.sh ] || ! [ -f ../edk2/edksetup.sh ]
 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
-- 
2.47.1