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