use of com.google.copybara.git.github.api.GitHubApiTransportImpl in project copybara by google.
the class GithubOptions method getApi.
public GithubApi getApi(String gitHubRepo) throws RepoException {
GitRepository repo = gitOptions.cachedBareRepoForUrl("just_for_github_api");
String storePath = gitOptions.getCredentialHelperStorePath();
if (storePath == null) {
storePath = "~/.git-credentials";
}
return new GithubApi(new GitHubApiTransportImpl(repo, getHttpTransport(), storePath, generalOptionsSupplier.get().console()), generalOptionsSupplier.get().profiler());
}
Aggregations