1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

Silence calls to git in version.sh.

Originally committed as revision 21068 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ramiro Polla 2010-01-07 19:25:03 +00:00
parent 8202d905cd
commit 9a02c3e183

View File

@ -12,13 +12,13 @@ test $revision && revision=SVN-r$revision
# check for git svn revision number
if ! test $revision; then
revision=$(cd "$1" && git svn find-rev HEAD)
revision=$(cd "$1" && git svn find-rev HEAD 2> /dev/null)
test $revision && revision=git-svn-r$revision
fi
# check for git short hash
if ! test $revision; then
revision=$(cd "$1" && git log -1 --pretty=format:%h)
revision=$(cd "$1" && git log -1 --pretty=format:%h 2> /dev/null)
test $revision && revision=git-$revision
fi