Browse code

use git describe for naming version in pure git clones

Patch by: Ramiro Polla <ramiro <DOT> polla gmail <DOT> com>

Originally committed as revision 26394 to svn://svn.ffmpeg.org/ffmpeg/trunk

Ramiro Polla authored on 2011/01/17 03:34:09
Showing 1 changed files
... ...
@@ -18,7 +18,7 @@ fi
18 18
 
19 19
 # check for git short hash
20 20
 if ! test $revision; then
21
-    revision=$(cd "$1" && git log -1 --pretty=format:%h 2> /dev/null)
21
+    revision=$(cd "$1" && git describe --always 2> /dev/null)
22 22
     test $revision && revision=git-$revision
23 23
 fi
24 24