diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2010-01-07 22:25:03 +0300 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2010-01-07 22:25:03 +0300 |
commit | 9a02c3e1833ef933f03860b5ac31ebdda1e1912d (patch) | |
tree | 5543d514da3081af152a339d1f8cf03387a79943 | |
parent | 8202d905cd0df4b8fbb29535a1d422f28d204059 (diff) |
Silence calls to git in version.sh.
Originally committed as revision 21068 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | version.sh | 4 |
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 |