Skip to content

Commit

Permalink
Fix to getting contents from repo
Browse files Browse the repository at this point in the history
Uses commit from @kekscom & closes github-tools#70
However, needs something as 5th param to bring back as raw data and not
JSON.parse
  • Loading branch information
mattpass committed Oct 2, 2013
1 parent a5ae9bd commit c875027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
// --------

this.contents = function(branch, path, cb) {
_request("GET", repoPath + "/contents?ref=" + branch, { path: path }, cb);
_request("GET", repoPath + "/contents?ref=" + branch + (path ? "&path=" + path : ""), null, cb, 'raw');
};

// Fork repository
Expand Down

0 comments on commit c875027

Please sign in to comment.