diff options
author | Matthias Sohn | 2017-08-19 21:45:00 +0000 |
---|---|---|
committer | Matthias Sohn | 2017-08-19 21:45:00 +0000 |
commit | f5264cfabfb2f921304536f4471bff469d9ba546 (patch) | |
tree | 63f73573db71627f3607dd766ddc8fdb6c2fe18c /org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common | |
parent | d306c4a3c5a31cc80caca99c1d37cebdb44c8d24 (diff) | |
download | egit-f5264cfabfb2f921304536f4471bff469d9ba546.tar.gz egit-f5264cfabfb2f921304536f4471bff469d9ba546.tar.xz egit-f5264cfabfb2f921304536f4471bff469d9ba546.zip |
Remove repository from ListRemoteOperation
LsRemoteCommand can run ls-remote without a repository hence remove the
unnecessary repository from ListRemoteOperation. SourceBranchPage
created an unnecessary temporary repository in /tmp in order to run
ls-remote before cloning a repository. This may fail if the user does
not have write permissions in this folder.
Bug: 521033
Change-Id: Id39107266551a3b7a9251cf9d26233f9bbfdc516
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common')
-rw-r--r-- | org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java index 04713a8706..0351009839 100644 --- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java +++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/LocalRepositoryTestCase.java @@ -790,9 +790,8 @@ public abstract class LocalRepositoryTestCase extends EGitTestCase { } protected static Collection<Ref> getRemoteRefs(URIish uri) throws Exception { - final Repository db = FileRepositoryBuilder.create(new File("/tmp")); //$NON-NLS-1$ int timeout = 20; - ListRemoteOperation listRemoteOp = new ListRemoteOperation(db, uri, + ListRemoteOperation listRemoteOp = new ListRemoteOperation(uri, timeout); listRemoteOp.run(null); return listRemoteOp.getRemoteRefs(); |