[ 
https://issues.apache.org/jira/browse/HBASE-21999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stack resolved HBASE-21999.
---------------------------
    Resolution: Fixed

Pushed below on branch-2.0. Revert when figure the issue.

diff --git a/hbase-common/src/saveVersion.sh b/hbase-common/src/saveVersion.sh
index 730224f0d6..0136fecd60 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

> [DEBUG] Exit if git returns empty revision!
> -------------------------------------------
>
>                 Key: HBASE-21999
>                 URL: https://issues.apache.org/jira/browse/HBASE-21999
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: stack
>            Priority: Major
>
> Let me commit a bit of debug on branch-2.0. Can't figure out how we are 
> getting empty git revision string. Have the build fail if empty....



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to