diff options
author | Andrew Gerrand <adg@golang.org> | 2011-08-15 21:19:07 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2011-08-15 21:19:07 +1000 |
commit | 241a262fe592911b8be3d44694429103e4ff86e4 (patch) | |
tree | 4695dd4c6d4273d473e92c642085d34755190507 | |
parent | 175849295ce632c2ddeca7024f7c783327b5e571 (diff) | |
download | go-git-241a262fe592911b8be3d44694429103e4ff86e4.tar.gz |
build: don't require hg for build
R=golang-dev, dsymonds, n13m3y3r
CC=golang-dev
https://golang.org/cl/4873048
-rwxr-xr-x | src/version.bash | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/version.bash b/src/version.bash index ce5a9969a2..e3677a7368 100755 --- a/src/version.bash +++ b/src/version.bash @@ -5,8 +5,9 @@ # Check that we can use 'hg' if ! hg version > /dev/null 2>&1; then - echo 'hg not installed' 1>&2 - exit 2 + echo 'unable to report version: hg not installed' 1>&2 + echo 'unknown' + exit 0 fi # Get numerical revision |