HBASE-2590 Failed parse of branch element in saveVersion.sh

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@947359 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-05-23 05:30:27 +00:00
parent f896891125
commit 5f679cb525
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ cwd=`pwd`
if [ -d .svn ]; then if [ -d .svn ]; then
revision=`svn info | sed -n -e 's/Last Changed Rev: \(.*\)/\1/p'` revision=`svn info | sed -n -e 's/Last Changed Rev: \(.*\)/\1/p'`
url=`svn info | sed -n -e 's/URL: \(.*\)/\1/p'` url=`svn info | sed -n -e 's/URL: \(.*\)/\1/p'`
elif [ -d ../.git ]; then elif [ -d .git ]; then
revision=`git log -1 --pretty=format:"%H"` revision=`git log -1 --pretty=format:"%H"`
hostname=`hostname` hostname=`hostname`
url="git://${hostname}${cwd}" url="git://${hostname}${cwd}"