From e6adf48c3839f5e88fe8b0ce0895f5cca6f02f66 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 24 Aug 2015 21:07:11 -0700 Subject: [PATCH] Fix a glitch when PPSSPP_GIT_VERSION_NO_UPDATE = 1. Would cause the other version not to generate properly. --- Windows/git-version-gen.cmd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Windows/git-version-gen.cmd b/Windows/git-version-gen.cmd index af41b801f8..47d0507525 100644 --- a/Windows/git-version-gen.cmd +++ b/Windows/git-version-gen.cmd @@ -57,6 +57,10 @@ if errorlevel 1 ( set GIT_MISSING=1 ) +if not "%GIT_MISSING%" == "1" ( + for /F %%I in ('call %GIT% describe --always') do set GIT_VERSION=%%I +) + if exist "%GIT_VERSION_FILE%" ( rem // Skip updating the file if PPSSPP_GIT_VERSION_NO_UPDATE is 1. findstr /B /C:"#define PPSSPP_GIT_VERSION_NO_UPDATE 1" "%GIT_VERSION_FILE%" > NUL @@ -76,8 +80,6 @@ if "%GIT_MISSING%" == "1" ( goto gitdone ) -for /F %%I in ('call %GIT% describe --always') do set GIT_VERSION=%%I - rem // Don't modify the file if it already has the current version. if exist "%GIT_VERSION_FILE%" ( findstr /C:"%GIT_VERSION%" "%GIT_VERSION_FILE%" > NUL