Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
fix: github api branch ref
Browse files Browse the repository at this point in the history
  • Loading branch information
vhf committed Oct 28, 2019
1 parent dcc74a9 commit db2a7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/github/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = class GitHubAPIv3 {
async getFile ({ path = this.ontologyPath, branch = this.branch } = {}) {
const owner = this.owner
const repo = this.repo
const ref = `heads/${branch}`
const ref = branch
const query = { owner, repo, path, ref }

const cached = __cache.get(`${ref}/${path}`)
Expand Down

0 comments on commit db2a7c6

Please sign in to comment.