Browse Source

TransportBundleFile: Resolve remote repository locally

Remove the assumption that the local repository is a file based one.

Change-Id: I8f10fe7a54e9fc07f2a23d7901e52b65aa570d45
Signed-off-by: Thomas Meyer <thomas.mey@web.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-4.6
Thomas Meyer 8 years ago committed by Matthias Sohn
parent
commit
4ab06388ad
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportBundleFile.java

2
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportBundleFile.java

@ -94,7 +94,7 @@ class TransportBundleFile extends Transport implements TransportBundle {
public Transport open(URIish uri, Repository local, String remoteName) public Transport open(URIish uri, Repository local, String remoteName)
throws NotSupportedException, TransportException { throws NotSupportedException, TransportException {
if ("bundle".equals(uri.getScheme())) { //$NON-NLS-1$ if ("bundle".equals(uri.getScheme())) { //$NON-NLS-1$
File path = local.getFS().resolve(new File("."), uri.getPath()); //$NON-NLS-1$ File path = FS.DETECTED.resolve(new File("."), uri.getPath()); //$NON-NLS-1$
return new TransportBundleFile(local, uri, path); return new TransportBundleFile(local, uri, path);
} }

Loading…
Cancel
Save