summaryrefslogtreecommitdiff
path: root/tools/get-scala-revision
diff options
context:
space:
mode:
Diffstat (limited to 'tools/get-scala-revision')
-rwxr-xr-xtools/get-scala-revision3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/get-scala-revision b/tools/get-scala-revision
index 685ce67a6d..4d6e67f79e 100755
--- a/tools/get-scala-revision
+++ b/tools/get-scala-revision
@@ -16,7 +16,8 @@ fi
cd $DIR
if [ -d .svn ]; then
- svn info . | grep ^Revision | sed 's/Revision: //'
+ # 2>&1 to catch also error output (e.g. svn warnings)
+ svn info . 2>&1 | grep ^Revision | sed 's/Revision: //'
elif [ -d .git ]; then
GIT_PAGER=cat
# this grabs more than one line because otherwise if you have local