diff --git a/src/backends/git-gateway/API.js b/src/backends/git-gateway/API.js index 91221f03a71f..e14e558fcfff 100644 --- a/src/backends/git-gateway/API.js +++ b/src/backends/git-gateway/API.js @@ -26,6 +26,16 @@ export default class API extends GithubAPI { } }); } + + isPrivateRepo() { + /** + * There is currently no way to check whether a Git Gateway + * repo is public or private, so we have to assume it is private + * so that all requests are authenticated. + * (see github/implementation.js#persistMedia()) + */ + return true; + } getRequestHeaders(headers = {}) { return this.tokenPromise()