diff options
Diffstat (limited to 'org.eclipse.jgit.test/tst')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/api/LsRemoteCommandTest.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/LsRemoteCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/LsRemoteCommandTest.java index 991214d581..f31276dee4 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/LsRemoteCommandTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/LsRemoteCommandTest.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011, Chris Aniszczyk <caniszczyk@gmail.com> + * Copyright (C) 2011, 2013 Chris Aniszczyk <caniszczyk@gmail.com> and others. * and other copyright owners as documented in the project's IP log. * * This program and the accompanying materials are made available @@ -128,4 +128,12 @@ public class LsRemoteCommandTest extends RepositoryTestCase { assertEquals(2, refs.size()); } + @Test + public void testLsRemoteWithoutLocalRepository() throws Exception { + String uri = "file://" + git.getRepository().getWorkTree().getPath(); + Collection<Ref> refs = Git.lsRemoteRepository().setRemote(uri).setHeads(true).call(); + assertNotNull(refs); + assertEquals(2, refs.size()); + } + } |