gen_scmversion: Don't use latest GitHub release tag

pull/474/head
Connor McLaughlin 5 years ago
parent f49c2dedf6
commit 7bb087fe73

@ -2,7 +2,7 @@
SET VERSIONFILE="scmversion.cpp"
FOR /F "tokens=* USEBACKQ" %%g IN (`git rev-parse --abbrev-ref HEAD`) do (SET "BRANCH=%%g")
FOR /F "tokens=* USEBACKQ" %%g IN (`git describe --tags --dirty`) do (SET "TAG=%%g")
FOR /F "tokens=* USEBACKQ" %%g IN (`git describe --tags --dirty --exclude latest`) do (SET "TAG=%%g")
SET SIGNATURELINE=// %BRANCH% %TAG%
SET /P EXISTINGLINE=< %VERSIONFILE%

@ -2,7 +2,7 @@
VERSION_FILE="scmversion.cpp"
BRANCH=$(git rev-parse --abbrev-ref HEAD | tr -d '\r\n')
TAG=$(git describe --tags --dirty | tr -d '\r\n')
TAG=$(git describe --tags --dirty --exclude latest | tr -d '\r\n')
SIGNATURE_LINE="// ${BRANCH} ${TAG}"

Loading…
Cancel
Save