Skip to content

Commit d865e6a

Browse files
committed
appveyor.bat: fix git-describe command, fallback to the commit hash, if no tag is given
Signed-off-by: Christian Brabandt <[email protected]>
1 parent f321f69 commit d865e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appveyor.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SetLocal
88
cd %APPVEYOR_BUILD_FOLDER%
99

1010
if not defined APPVEYOR_REPO_TAG_NAME (
11-
for /F %%I in ('git describe --tags --abbrev^=0') do set "TAG_NAME=%%I"
11+
for /F %%I in ('git describe --tags --always --abbrev^=0') do set "TAG_NAME=%%I"
1212
) else (
1313
set "TAG_NAME=%APPVEYOR_REPO_TAG_NAME%"
1414
)

0 commit comments

Comments
 (0)