final URL loc = bundle.toURL();
final URIish uri = new URIish(loc);
final Transport t = new TransportBundleStream(git.getRepository(), uri, loc.openStream());
try {
final FetchConnection src = t.openFetch();
final Ref target = src.getRef(refName);
final Collection<Ref> want = singleton(target);
final Set<ObjectId> have = emptySet();
src.fetch(NullProgressMonitor.INSTANCE, want, have);