From 8032d1dee9dfa855a4e03da840b72a82e2f9a86b Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Sun, 16 Jan 2011 18:34:09 +0000 Subject: [PATCH] use git describe for naming version in pure git clones Patch by: Ramiro Polla polla gmail com> Originally committed as revision 26394 to svn://svn.ffmpeg.org/ffmpeg/trunk --- version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.sh b/version.sh index f8510ea28c..f45c60daae 100755 --- a/version.sh +++ b/version.sh @@ -18,7 +18,7 @@ fi # check for git short hash if ! test $revision; then - revision=$(cd "$1" && git log -1 --pretty=format:%h 2> /dev/null) + revision=$(cd "$1" && git describe --always 2> /dev/null) test $revision && revision=git-$revision fi