Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xversion.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/version.sh b/version.sh
index 8d084c2df3..2309176f7a 100755
--- a/version.sh
+++ b/version.sh
@@ -2,7 +2,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: