public static FetchResult doFetch(Repository repo, OutputLogger logger) throws NotSupportedException, TransportException, URISyntaxException {
final FetchResult r;
final Transport tn = Transport.open(repo, "origin");
try {
r = tn.fetch(new GitProgressMonitor(), null);
} finally {
tn.close();
}
logger.output("--- Fetch Completed ---");
return r;