Commit 9a02c3e1 authored by Ramiro Polla's avatar Ramiro Polla
Browse files

Silence calls to git in version.sh.

Originally committed as revision 21068 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 8202d905
...@@ -12,13 +12,13 @@ test $revision && revision=SVN-r$revision ...@@ -12,13 +12,13 @@ test $revision && revision=SVN-r$revision
# check for git svn revision number # check for git svn revision number
if ! test $revision; then 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 test $revision && revision=git-svn-r$revision
fi fi
# check for git short hash # check for git short hash
if ! test $revision; then 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 test $revision && revision=git-$revision
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment