HBASE-2370 saveVersion.sh doesnt properly grab the git revision

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@926869 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan Rawson 2010-03-24 00:01:08 +00:00
parent 136d3a1f58
commit f529cb29e1
2 changed files with 2 additions and 1 deletions

View File

@ -253,6 +253,7 @@ Release 0.21.0 - Unreleased
HLog splitting (Todd Lipcon via Andrew Purtell)
HBASE-2358 Store doReconstructionLog will fail if oldlogfile.log is empty
and won't load region (Cosmin Lehene via Stack)
HBASE-2370 saveVersion.sh doesnt properly grab the git revision
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -35,7 +35,7 @@ if [ -d .svn ]; then
branch=`echo $url | sed -n -e 's,.*\(branches/.*\)$,\1,p' \
-e 's,.*\(tags/.*\)$,\1,p' \
-e 's,.*trunk$,trunk,p'`
elif [ -d .git ]; then
elif [ -d ../.git ]; then
revision=`git log -1 --pretty=format:"%H"`
hostname=`hostname`
branch=`git branch | sed -n -e 's/^* //p'`