Browse Source

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
tags/n0.8
Ramiro Polla Janne Grunau 15 years ago
parent
commit
8032d1dee9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      version.sh

+ 1
- 1
version.sh View File

@@ -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



Loading…
Cancel
Save