import org.eclipse.jgit.api.errors.TransportException;
import org.eclipse.jgit.lib.Ref;
public class ListRemoteRepository {</BUG>
private static final String REMOTE_URL = "https://github.com/github/testrepo.git";
<BUG>public static void main(String[] args) throws InvalidRemoteException, TransportException, GitAPIException {
System.out.println("Listing remote repository " + REMOTE_URL);</BUG>
Collection<Ref> refs = Git.lsRemoteRepository()
.setHeads(true)
.setTags(true)
.setRemote(REMOTE_URL)

package org.dstadler.jgit.porcelain;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.lib.Ref;
import java.util.Collection;
public class ListRemoteRepository {
private static final String REMOTE_URL = "https://github.com/github/testrepo.git";
public static void main(String[] args) throws GitAPIException {
System.out.println("Listing remote repository " + REMOTE_URL);
Collection<Ref> refs = Git.lsRemoteRepository()
.setHeads(true)
.setTags(true)
.setRemote(REMOTE_URL)
