newvers.sh: fix the fallback case of git-svn detection

MFC after:	5 days
Sponsored by:	HybridCluster
This commit is contained in:
Andriy Gapon 2013-07-24 09:05:04 +00:00
parent 8310a2b88c
commit 5393fdd26f

View File

@ -132,7 +132,7 @@ if [ -n "$git_cmd" ] ; then
else
svn=`$git_cmd log | fgrep 'git-svn-id:' | head -1 | \
sed -n 's/^.*@\([0-9][0-9]*\).*$/\1/p'`
if [ -n $svn ] ; then
if [ -n "$svn" ] ; then
svn=" r${svn}"
git="+${git}"
else