From 105c694903284333b6e83d97bffbe7edb3769496 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sat, 2 Sep 2023 10:04:52 +0200 Subject: [PATCH] Windows: update some comments and echos in git-version-gen.cmd --- Utilities/git-version-gen.cmd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Utilities/git-version-gen.cmd b/Utilities/git-version-gen.cmd index bd524cd760..7de2ebf28f 100644 --- a/Utilities/git-version-gen.cmd +++ b/Utilities/git-version-gen.cmd @@ -90,7 +90,6 @@ rem // Get commit count from (unshallowed) HEAD for /F %%I IN ('call %GIT% rev-list HEAD --count') do set COMMIT_COUNT=%%I rem // Check if the current build system sets the git branch and version. -rem // The name is misleading. This is also used for master builds. if defined BUILD_SOURCEBRANCHNAME ( rem // This must be a CI build @@ -143,8 +142,8 @@ if defined BUILD_SOURCEBRANCHNAME ( ) ) else ( - rem // The name is misleading. This is also used for master builds. - echo SYSTEM_PULLREQUEST_SOURCEBRANCH undefined + echo BUILD_SOURCEBRANCHNAME undefined + echo Assuming local build rem // Make GIT_VERSION the last commit (shortened); Don't include commit count on non-release builds for /F %%I IN ('call %GIT% rev-parse --short^=8 HEAD') do set GIT_VERSION=%%I