aboutsummaryrefslogtreecommitdiffstats
path: root/version.sh
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2010-01-07 19:25:03 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2010-01-07 19:25:03 +0000
commit9a02c3e1833ef933f03860b5ac31ebdda1e1912d (patch)
tree5543d514da3081af152a339d1f8cf03387a79943 /version.sh
parent8202d905cd0df4b8fbb29535a1d422f28d204059 (diff)
downloadffmpeg-9a02c3e1833ef933f03860b5ac31ebdda1e1912d.tar.gz
Silence calls to git in version.sh.
Originally committed as revision 21068 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'version.sh')
-rwxr-xr-xversion.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/version.sh b/version.sh
index 5b5f451534..70679cc7f0 100755
--- a/version.sh
+++ b/version.sh
@@ -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