version: fix path for git describe of version for redo

This commit is contained in:
Brad Fitzpatrick 2020-02-10 09:19:57 -08:00
parent a1fbf25f77
commit 1f1dc3ad14

View File

@ -1,4 +1,4 @@
ver=$(git describe | sed 's/^v//')
ver=$(cd ../.. && git describe | sed 's/^v//')
if [ "$ver" = "${ver%-*}" ]; then
# no sub-version. ie. it's 0.05 and not 0.05-341
# so add a sub-version.