diff options
author | Robin Rosenberg <robin.rosenberg@dewire.com> | 2013-04-16 00:05:41 +0200 |
---|---|---|
committer | Chris Aniszczyk <zx@twitter.com> | 2013-04-18 15:33:50 -0500 |
commit | 526b6266a5afa1de67a1667230fc4ebea331dab5 (patch) | |
tree | 6fc9562072694ee57a62b33336486f575fac1ad0 /org.eclipse.jgit/src | |
parent | 6e90671a51eb91f4c53263e4169e736da6476ba2 (diff) | |
download | jgit-526b6266a5afa1de67a1667230fc4ebea331dab5.tar.gz jgit-526b6266a5afa1de67a1667230fc4ebea331dab5.zip |
Remove some unnecessary dependencies on FileRepostory
Change-Id: Ib6ee3a2874a7e2240aa68f4ac32d00c4d1fab5ae
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportLocal.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportLocal.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportLocal.java index a8b9149523..2f615e2fc1 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportLocal.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportLocal.java @@ -62,8 +62,8 @@ import org.eclipse.jgit.errors.NoRemoteRepositoryException; import org.eclipse.jgit.errors.NotSupportedException; import org.eclipse.jgit.errors.TransportException; import org.eclipse.jgit.internal.JGitText; -import org.eclipse.jgit.internal.storage.file.FileRepository; import org.eclipse.jgit.lib.Repository; +import org.eclipse.jgit.lib.RepositoryBuilder; import org.eclipse.jgit.lib.RepositoryCache; import org.eclipse.jgit.util.io.MessageWriter; import org.eclipse.jgit.util.io.SafeBufferedOutputStream; @@ -201,7 +201,7 @@ class TransportLocal extends Transport implements PackTransport { final Repository dst; try { - dst = new FileRepository(remoteGitDir); + dst = new RepositoryBuilder().setGitDir(remoteGitDir).build(); } catch (IOException err) { throw new TransportException(uri, JGitText.get().notAGitDirectory); } @@ -341,7 +341,7 @@ class TransportLocal extends Transport implements PackTransport { final Repository dst; try { - dst = new FileRepository(remoteGitDir); + dst = new RepositoryBuilder().setGitDir(remoteGitDir).build(); } catch (IOException err) { throw new TransportException(uri, JGitText.get().notAGitDirectory); } |