Skip to content

Commit

Permalink
Merge pull request #154 from recena/JENKINS-32169
Browse files Browse the repository at this point in the history
[JENKINS-32169] SVNRepository.getRepositoryRoot(false) can return null
  • Loading branch information
recena committed Jan 5, 2016
2 parents 7304b13 + 0880857 commit c129d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/scm/SubversionSCM.java
Expand Up @@ -3092,7 +3092,7 @@ public FormValidation checkCredentialsId(StaplerRequest req, @Nonnull Item conte
StandardCredentials credentials = lookupCredentials(context, value, repoURL);
SVNRepository repo = descriptor().getRepository(context, repoURL, credentials, Collections
.<String, Credentials>emptyMap(), null);
String repoRoot = repo.getRepositoryRoot(false).toDecodedString();
String repoRoot = repo.getRepositoryRoot(true).toDecodedString();
String repoPath = repo.getLocation().toDecodedString().substring(repoRoot.length());
SVNPath path = new SVNPath(repoPath, true, true);
SVNNodeKind svnNodeKind = repo.checkPath(path.getTarget(), path.getPegRevision().getNumber());
Expand Down

0 comments on commit c129d51

Please sign in to comment.