This is an automated email from the ASF dual-hosted git repository.
stack pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 6008b21 HBASE-21999 [DEBUG] Exit if git returns empty revision!
6008b21 is described below
commit 6008b21bb1e466b209c4de4d87833872e3b1f5af
Author: stack <[email protected]>
AuthorDate: Tue Mar 5 21:11:17 2019 -0800
HBASE-21999 [DEBUG] Exit if git returns empty revision!
---
hbase-common/src/saveVersion.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hbase-common/src/saveVersion.sh b/hbase-common/src/saveVersion.sh
index 730224f..0136fec 100644
--- a/hbase-common/src/saveVersion.sh
+++ b/hbase-common/src/saveVersion.sh
@@ -45,6 +45,10 @@ else
revision="Unknown"
url="file://$cwd"
fi
+if [ -z $revision ]
+ echo "$revision is empty!"
+ exit 1
+fi
which md5sum > /dev/null
if [ "$?" != "0" ] ; then
which md5 > /dev/null