mirror of
https://github.com/xiph/opus.git
synced 2025-06-03 09:07:42 +00:00
Drop the use of --always to git-describe
This is a partial revert of c435f06b30
,
since it didn't actually fix the original problem with shallow clones.
It returns just a hash, not something we (currently) can extract as a
version string in the form things are expecting.
This commit is contained in:
parent
a8fa0cb629
commit
a1740d9ad1
2 changed files with 2 additions and 3 deletions
|
@ -34,8 +34,7 @@ fi
|
|||
# -dirty from files that have been touched but are not actually altered in the
|
||||
# working dir.
|
||||
GIT_VERSION=$(cd "$SRCDIR" && git status > /dev/null 2>&1 \
|
||||
&& git describe --tags --match 'v*' \
|
||||
--always --dirty 2> /dev/null)
|
||||
&& git describe --tags --match 'v*' --dirty 2> /dev/null)
|
||||
GIT_VERSION=${GIT_VERSION#v}
|
||||
|
||||
if [ -n "$GIT_VERSION" ]; then
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
setlocal enableextensions enabledelayedexpansion
|
||||
|
||||
for /f %%v in ('git --git-dir="%~dp0..\.git" describe --tags --match "v*" --always') do set version=%%v
|
||||
for /f %%v in ('git --git-dir="%~dp0..\.git" describe --tags --match "v*"') do set version=%%v
|
||||
|
||||
if not "%version%"=="" goto :gotversion
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue