diff options
-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 |