build: Stricter git tag version parsing
Only consider git tags that begin with 'v', as these are far more likely to be vpp version tags, and thus parsed by the version script properly. This needed when working with git clone to which additional tags may have been added. eg tags like: upstream/21.06_rc0+20210622 debian/21.06+20210811-1myvendor2 should be ingored, as they will not be parsed correctly. Type: make Change-Id: I7a6d185acd029335abaea5a9dac48839f1397135 Signed-off-by: Nick Brown <nickbroon@gmail.com>
This commit is contained in:

committed by
Damjan Marion

parent
b8165b96f5
commit
0faf388761
@ -20,7 +20,7 @@ cd "$path"
|
||||
if [ -f .version ]; then
|
||||
vstring=$(cat .version)
|
||||
else
|
||||
vstring=$(git describe --long)
|
||||
vstring=$(git describe --long --match "v*")
|
||||
if [ $? != 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user