From c1a1d2739dd89136a74a59f7742b433a270ce4d4 Mon Sep 17 00:00:00 2001 From: Jan Laupetin Date: Tue, 5 May 2026 22:07:11 +0100 Subject: [PATCH] fix: being able to generate solution without git submodules on windows --- generate.bat | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/generate.bat b/generate.bat index 57b65e8b..687f6c45 100644 --- a/generate.bat +++ b/generate.bat @@ -50,6 +50,14 @@ cd %~dp0 :start +IF NOT EXIST ".git" ( + git rev-parse --is-inside-work-tree >NUL 2>&1 + IF ERRORLEVEL 1 ( + echo You must clone the repository using 'git clone'. Please read README.md. + exit 1 + ) +) + IF "%PREMAKE_NO_GLOBAL%" EQU "" ( where /Q "premake5.exe" IF NOT ERRORLEVEL 1 (