mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-14 00:40:52 +00:00
switch to using sanitized subject for compnote
This commit is contained in:
parent
5d7ee3974f
commit
8d179825d9
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ set GIT=%2
|
||||||
if "%GIT%"=="" set GIT=git
|
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 --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% 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%
|
set REV=%REV:~0,8%
|
||||||
goto filwri
|
goto filwri
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ EOF
|
||||||
versiongit() {
|
versiongit() {
|
||||||
gitbranch="$(git rev-parse --abbrev-ref HEAD)"
|
gitbranch="$(git rev-parse --abbrev-ref HEAD)"
|
||||||
gitversion="$(git rev-parse HEAD | cut -c -8)"
|
gitversion="$(git rev-parse HEAD | cut -c -8)"
|
||||||
gitsubject="$(git log -1 --format=%s)"
|
gitsubject="$(git log -1 --format=%f)"
|
||||||
version "$gitbranch" "$gitversion" "$gitsubject";
|
version "$gitbranch" "$gitversion" "$gitsubject";
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue