Skip to content

Commit 7fce656

Browse files
committed
chore: Fix build version calculation to not count branch commits
1 parent d8f5378 commit 7fce656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ IF EXIST ".svn" (
9292
FOR /F "usebackq tokens=1" %%R IN (`svn --non-interactive info --show-item revision .`) DO SET Revision=%%R
9393
)
9494
IF EXIST ".git" (
95-
FOR /F "usebackq tokens=1" %%R IN (`git describe --always`) DO SET Revision=%%R
95+
FOR /F "usebackq tokens=1" %%R IN (`git describe --first-parent --always`) DO SET Revision=%%R
9696
)
9797
IF "%Revision%" == "000" (
9898
>&2 ECHO WARNING: No Subversion or Git revision found.

0 commit comments

Comments
 (0)