Browse Source

Merge "TransportLocal should reuse FS from source repo"

stable-4.11
Matthias Sohn 7 years ago committed by Gerrit Code Review @ Eclipse.org
parent
commit
105bfd9b56
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportLocal.java

4
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportLocal.java

@ -172,7 +172,9 @@ class TransportLocal extends Transport implements PackTransport {
private Repository openRepo() throws TransportException {
try {
return new RepositoryBuilder().setGitDir(remoteGitDir).build();
return new RepositoryBuilder()
.setFS(local != null ? local.getFS() : FS.DETECTED)
.setGitDir(remoteGitDir).build();
} catch (IOException err) {
throw new TransportException(uri, JGitText.get().notAGitDirectory);
}

Loading…
Cancel
Save