From 42b78552158b85f929d4bde2dbf9a965b69a626c Mon Sep 17 00:00:00 2001 From: Robert Konrad Date: Thu, 23 Nov 2023 10:50:27 +0100 Subject: [PATCH] Work around Git sometimes ignoring the shallow-option --- Kinc | 2 +- get_dlc | 10 +++++----- get_dlc.bat | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Kinc b/Kinc index bc13d3f2a..110f4b780 160000 --- a/Kinc +++ b/Kinc @@ -1 +1 @@ -Subproject commit bc13d3f2a5e1eea82f4c3e363518e78e7603229c +Subproject commit 110f4b780f4b6979eb91da5af65c4400f3e68222 diff --git a/get_dlc b/get_dlc index 168ecf6f8..99b04c94a 100755 --- a/get_dlc +++ b/get_dlc @@ -6,16 +6,16 @@ git -C `dirname "$0"` submodule update --init Backends/Kinc-hxcpp/khacpp if [[ "$OSTYPE" == "linux-gnu"* ]]; then MACHINE_TYPE=`uname -m` if [[ "$MACHINE_TYPE" == "armv"* ]]; then - git -C `dirname "$0"` submodule update --init Tools/linux_arm + git -C `dirname "$0"` submodule update --depth 1 --init Tools/linux_arm elif [[ "$MACHINE_TYPE" == "aarch64"* ]]; then - git -C `dirname "$0"` submodule update --init Tools/linux_arm64 + git -C `dirname "$0"` submodule update --depth 1 --init Tools/linux_arm64 else - git -C `dirname "$0"` submodule update --init Tools/linux_x64 + git -C `dirname "$0"` submodule update --depth 1 --init Tools/linux_x64 fi elif [[ "$OSTYPE" == "darwin"* ]]; then - git -C `dirname "$0"` submodule update --init Tools/macos + git -C `dirname "$0"` submodule update --depth 1 --init Tools/macos elif [[ "$OSTYPE" == "FreeBSD"* ]]; then - git -C `dirname "$0"` submodule update --init Tools/freebsd_x64 + git -C `dirname "$0"` submodule update --depth 1 --init Tools/freebsd_x64 fi git -C `dirname "$0"` submodule update --init Kinc diff --git a/get_dlc.bat b/get_dlc.bat index a76077dba..146b9b810 100644 --- a/get_dlc.bat +++ b/get_dlc.bat @@ -1,7 +1,7 @@ @pushd "%~dp0" @git submodule update --init Tools/khamake @git submodule update --init Backends/Kinc-hxcpp/khacpp -@git submodule update --init Tools/windows_x64 +@git submodule update --depth 1 --init Tools/windows_x64 @git submodule update --init Kinc @call Kinc\get_dlc.bat @popd \ No newline at end of file