X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=version.sh;h=f9754eb3cf23e29fbaf4eb6992d43d4431dcf518;hb=ec33df60457d95e174c51666cb799e48c55facb0;hp=92edcb9474ed86d641b2b2252f40f9c80399facb;hpb=c11255ae8b1a6239cfde38bb6d44dde35eee9648;p=ffmpeg diff --git a/version.sh b/version.sh index 92edcb9474e..f9754eb3cf2 100755 --- a/version.sh +++ b/version.sh @@ -4,7 +4,11 @@ # check for git short hash if ! test "$revision"; then - revision=$(cd "$1" && git describe --tags --match N 2> /dev/null) + if (cd "$1" && grep git RELEASE 2> /dev/null >/dev/null) ; then + revision=$(cd "$1" && git describe --tags --match N 2> /dev/null) + else + revision=$(cd "$1" && git describe --tags --always 2> /dev/null) + fi fi # Shallow Git clones (--depth) do not have the N tag: