[FFmpeg-cvslog] commit: use git describe for naming version in pure git clones ( Ramiro Polla )

git at videolan.org git
Sun Jan 16 19:37:12 CET 2011


ffmpeg | branch: master | Ramiro Polla <ramiro at lisha.ufsc.br> | Sun Jan 16 18:34:09 2011 +0000| [8032d1dee9dfa855a4e03da840b72a82e2f9a86b] | committer: Janne Grunau 

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8032d1dee9dfa855a4e03da840b72a82e2f9a86b
---

 version.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/version.sh b/version.sh
index f8510ea..f45c60d 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
 




More information about the ffmpeg-cvslog mailing list