OSDN Git Service

Silence calls to git in version.sh.
authorRamiro Polla <ramiro.polla@gmail.com>
Thu, 7 Jan 2010 19:25:03 +0000 (19:25 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Thu, 7 Jan 2010 19:25:03 +0000 (19:25 +0000)
Originally committed as revision 21068 to svn://svn.ffmpeg.org/ffmpeg/trunk

version.sh

index 5b5f451..70679cc 100755 (executable)
@@ -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