Search in sources :

Example 1 with GitHubApiTransportImpl

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());
}
Also used : GithubApi(com.google.copybara.git.github.api.GithubApi) GitHubApiTransportImpl(com.google.copybara.git.github.api.GitHubApiTransportImpl)

Aggregations

GitHubApiTransportImpl (com.google.copybara.git.github.api.GitHubApiTransportImpl)1 GithubApi (com.google.copybara.git.github.api.GithubApi)1