[FFmpeg-cvslog] r26394 - trunk/version.sh
janne
subversion
Sun Jan 16 19:34:09 CET 2011
Author: janne
Date: Sun Jan 16 19:34:09 2011
New Revision: 26394
Log:
use git describe for naming version in pure git clones
Patch by: Ramiro Polla <ramiro <DOT> polla gmail <DOT> com>
Modified:
trunk/version.sh
Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh Sun Jan 16 19:29:08 2011 (r26393)
+++ trunk/version.sh Sun Jan 16 19:34:09 2011 (r26394)
@@ -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