Skip to content

Commit c875027

Browse files
committed
Fix to getting contents from repo
Uses commit from @kekscom & closes #70 However, needs something as 5th param to bring back as raw data and not JSON.parse
1 parent a5ae9bd commit c875027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@
344344
// --------
345345

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

350350
// Fork repository

0 commit comments

Comments
 (0)