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 }