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:
parent
f896891125
commit
5f679cb525
|
@ -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}"
|
||||||
|
|
Loading…
Reference in New Issue