mirror of
https://github.com/xiph/opus.git
synced 2025-05-31 15:47:43 +00:00
Pass --always to git describe.
This generates a useful version string even for --depth=1 checkouts. The option was added in git v1.6.6.
This commit is contained in:
parent
a32fa319d3
commit
c435f06b30
2 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
setlocal enableextensions enabledelayedexpansion
|
||||
|
||||
for /f %%v in ('git --git-dir="%~dp0..\.git" describe --tags --match "v*"') do set version=%%v
|
||||
for /f %%v in ('git --git-dir="%~dp0..\.git" describe --tags --match "v*" --always --dirty') do set version=%%v
|
||||
|
||||
if not "%version%"=="" goto :gotversion
|
||||
|
||||
|
@ -43,4 +43,4 @@ copy /y "%1_temp" "%1"
|
|||
|
||||
:exit
|
||||
|
||||
del "%1_temp"
|
||||
del "%1_temp"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue