aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Meyer <thomas.mey@web.de>2016-07-22 07:51:50 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2016-10-21 00:24:52 +0200
commit4ab06388adcf5fc9a5405c8bb80dda8f5cdaa421 (patch)
tree7857deb42440c78d048a864868a78b49261403c3
parente3468735111f26e4cdb4c249c257da52f4c3cffb (diff)
downloadjgit-4ab06388adcf5fc9a5405c8bb80dda8f5cdaa421.tar.gz
jgit-4ab06388adcf5fc9a5405c8bb80dda8f5cdaa421.zip
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>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportBundleFile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportBundleFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportBundleFile.java
index bbc0d0aa73..9b0834133b 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportBundleFile.java
+++ b/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)
throws NotSupportedException, TransportException {
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);
}