Commit 80bf32f0 authored by ramiro's avatar ramiro

Silence calls to git in version.sh.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21068 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ba6ee5f3
......@@ -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
......
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