From e0c3f274694691a630b216d14ae7778fabfc445f Mon Sep 17 00:00:00 2001 From: thunder2 Date: Fri, 8 Jul 2022 22:01:08 +0200 Subject: [PATCH] Fixed generating changelog in Windows MinGW build --- build_scripts/Windows/tools/generate-changelog.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_scripts/Windows/tools/generate-changelog.bat b/build_scripts/Windows/tools/generate-changelog.bat index c38225045..2eb87ced6 100644 --- a/build_scripts/Windows/tools/generate-changelog.bat +++ b/build_scripts/Windows/tools/generate-changelog.bat @@ -18,6 +18,8 @@ copy nul %logfile% > nul pushd %~1 +set Percent=%% + set last=HEAD for /f %%t in ('git tag --sort=-taggerdate --merged ^| findstr v') do ( echo generating changelog for !last!..%%t @@ -30,7 +32,7 @@ for /f %%t in ('git tag --sort=-taggerdate --merged ^| findstr v') do ( rem echo !last! ---^> %%t >> %logfile% echo ----------------------------------------------- >> %logfile% echo. >> %logfile% - git log %%t..!last! --no-merges "--pretty=format:%%h %%ai %%<(10,trunc)%%an %%s" >> %logfile% + git log %%t..!last! --no-merges "--pretty=format:!Percent!h !Percent!ai !Percent!<(10,trunc)!Percent!an !Percent!s" >> %logfile% echo. >> %logfile% echo. >> %logfile% set last=%%t