Skip to content

Commit

Permalink
Work around Git sometimes ignoring the shallow-option
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Nov 23, 2023
1 parent 42f93a5 commit 42b7855
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Kinc
Submodule Kinc updated 2 files
+1 −1 get_dlc
+1 −1 get_dlc.bat
10 changes: 5 additions & 5 deletions get_dlc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion get_dlc.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 42b7855

Please sign in to comment.