diff --git a/src/scmversion/gen_scmversion.bat b/src/scmversion/gen_scmversion.bat index 616d49b79..6150eaa7f 100644 --- a/src/scmversion/gen_scmversion.bat +++ b/src/scmversion/gen_scmversion.bat @@ -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% diff --git a/src/scmversion/gen_scmversion.sh b/src/scmversion/gen_scmversion.sh index 6c93b8462..3c7cddcb2 100755 --- a/src/scmversion/gen_scmversion.sh +++ b/src/scmversion/gen_scmversion.sh @@ -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}"