From 6fbed50461d39ba4c0579fba7748732bce00f45f Mon Sep 17 00:00:00 2001 From: Ray Molenkamp Date: Thu, 27 Feb 2025 16:16:50 -0700 Subject: [PATCH] make.bat: show hash/branch for test repository when available `make showhash` was missing the test repository, will only display when the test data is present. --- build_files/windows/show_hashes.cmd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build_files/windows/show_hashes.cmd b/build_files/windows/show_hashes.cmd index 2234348a65a..91f8b291b82 100644 --- a/build_files/windows/show_hashes.cmd +++ b/build_files/windows/show_hashes.cmd @@ -8,6 +8,11 @@ for /f "delims=" %%i in ('"%GIT%" rev-parse HEAD') do echo Branch_hash=%%i cd "%BLENDER_DIR%/scripts/addons_core" for /f "delims=" %%i in ('"%GIT%" rev-parse --abbrev-ref HEAD') do echo Addons_Branch_name=%%i for /f "delims=" %%i in ('"%GIT%" rev-parse HEAD') do echo Addons_Branch_hash=%%i +if EXIST "%BLENDER_DIR%/tests/data/.git" ( +cd "%BLENDER_DIR%/tests/data/" + for /f "delims=" %%i in ('"%GIT%" rev-parse --abbrev-ref HEAD') do echo Tests_Branch_name=%%i + for /f "delims=" %%i in ('"%GIT%" rev-parse HEAD') do echo Tests_Branch_hash=%%i +) if "%BUILD_ARCH%" == "arm64" ( cd "%BLENDER_DIR%/lib/windows_arm64"