File tree 1 file changed +5
-4
lines changed
src/main/groovy/com/alexvasilkov/vcs/util
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ class SvnHelper {
20
20
SVNClientManager client = getClient(repo)
21
21
22
22
if (exists) {
23
- SVNURL localUrl = getRepoUrl(client, repo)
24
- SVNURL targetUrl = getTargetUrl(repo)
23
+ String localUrl = getRepoUrl(client, repo)
24
+ String targetUrl = getTargetUrl(repo) . toString( )
25
25
26
26
if (! localUrl. equals(targetUrl)) {
27
27
throw new GradleException (" Svn cannot update from ${ localUrl} to ${ targetUrl} .\n " +
@@ -91,8 +91,9 @@ class SvnHelper {
91
91
return client. statusClient. doStatus(repo. repoDir, false ). revision
92
92
}
93
93
94
- private static SVNURL getRepoUrl (SVNClientManager client , SvnDependency repo ) {
95
- return client. statusClient. doStatus(repo. repoDir, false ). repositoryRootURL
94
+ private static String getRepoUrl (SVNClientManager client , SvnDependency repo ) {
95
+ SVNStatus status = client. statusClient. doStatus(repo. repoDir, false );
96
+ return status. repositoryRootURL. toString() + ' /' + status. repositoryRelativePath. toString()
96
97
}
97
98
98
99
private static boolean hasLocalChanges (SVNClientManager client , SvnDependency repo ) {
You can’t perform that action at this time.
0 commit comments