From 8d179825d9ddfd8d3f6020f90c2f740d33b7f92e Mon Sep 17 00:00:00 2001 From: Logan Aerl Arias Date: Sun, 31 Dec 2023 15:56:37 +0000 Subject: [PATCH] switch to using sanitized subject for compnote --- comptime.bat | 2 +- comptime.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/comptime.bat b/comptime.bat index 77879d5ee..c03f088b2 100644 --- a/comptime.bat +++ b/comptime.bat @@ -16,7 +16,7 @@ set GIT=%2 if "%GIT%"=="" set GIT=git for /f "tokens=* usebackq" %%s in (`%GIT% rev-parse --abbrev-ref HEAD`) do @set BRA=%%s for /f "tokens=* usebackq" %%s in (`%GIT% rev-parse HEAD`) do @set REV=%%s -for /f "tokens=* usebackq" %%s in (`%GIT% log -1 --format^=%%s`) do @set GL1=%%s +for /f "tokens=* usebackq" %%s in (`%GIT% log -1 --format^=%%f`) do @set GL1=%%s set REV=%REV:~0,8% goto filwri diff --git a/comptime.sh b/comptime.sh index e37ba6ad7..3338ecc35 100755 --- a/comptime.sh +++ b/comptime.sh @@ -19,7 +19,7 @@ EOF versiongit() { gitbranch="$(git rev-parse --abbrev-ref HEAD)" gitversion="$(git rev-parse HEAD | cut -c -8)" - gitsubject="$(git log -1 --format=%s)" + gitsubject="$(git log -1 --format=%f)" version "$gitbranch" "$gitversion" "$gitsubject"; exit 0 }