From 5fdc921bfd73ac7fa90740863a8d9d26ed843e5c Mon Sep 17 00:00:00 2001 From: Kotya Naik Date: Fri, 30 Nov 2018 20:29:32 +0530 Subject: [PATCH] fixes #155 --- src/main/scala/Vcs.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/Vcs.scala b/src/main/scala/Vcs.scala index e27c4d8..df66361 100644 --- a/src/main/scala/Vcs.scala +++ b/src/main/scala/Vcs.scala @@ -249,7 +249,7 @@ class Subversion(val baseDir: File) extends Vcs { val svnInfo = cmd("info").!! val svnInfoUrlKey = "URL: " val urlStartIdx = svnInfo.indexOf(svnInfoUrlKey) + svnInfoUrlKey.length - svnInfo.substring(urlStartIdx, svnInfo.indexOf('\n', urlStartIdx)-1) + svnInfo.substring(urlStartIdx, svnInfo.indexOf('\n', urlStartIdx)).trim } lazy val repoRoot:String = { @@ -258,7 +258,7 @@ class Subversion(val baseDir: File) extends Vcs { workingDirSvnUrl.indexOf("/branches"), workingDirSvnUrl.indexOf("/tags") ).filter(_ >= 0) - require(!svnBaseUrlEndIdxOptions.isEmpty, "No /trunk, /branches or /tags part found in svn url. Base url cannot be extracted.") + require(!svnBaseUrlEndIdxOptions.isEmpty, "No /trunk, /branches or /tags part found in svn url. Base url cannot be extracted. Url: " + workingDirSvnUrl) val svnBaseUrlEndIdx = svnBaseUrlEndIdxOptions.head workingDirSvnUrl.substring(0, svnBaseUrlEndIdx + 1) }