newvers.sh: fix the fallback case of git-svn detection
MFC after: 5 days Sponsored by: HybridCluster
This commit is contained in:
parent
8310a2b88c
commit
5393fdd26f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user