Browse Source

Merge "Better way to handle relative URLs in manifest XML"

stable-3.5
Dave Borowitz 11 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
c8ddac2a86
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java

4
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java

@ -351,8 +351,8 @@ public class RepoCommand extends GitCommand<RevCommit> {
} }
final String remoteUrl; final String remoteUrl;
try { try {
URI uri = new URI(String.format("%s/%s/", baseUrl, remotes.get(defaultRemote))); //$NON-NLS-1$ URI uri = new URI(baseUrl);
remoteUrl = uri.normalize().toString(); remoteUrl = uri.resolve(remotes.get(defaultRemote)).toString();
} catch (URISyntaxException e) { } catch (URISyntaxException e) {
throw new SAXException(e); throw new SAXException(e);
} }

Loading…
Cancel
Save