PullCommand pull = git.pull();
if (timeout >= 0)
pull.setTimeout(timeout);
pull.setProgressMonitor(new TextProgressMonitor());
PullResult result = pull.call();
return result;
}
public static List<Ref> getBranches(final Git repo) throws JGitInternalException, ConcurrentRefUpdateException,
InvalidTagNameException, NoHeadException