Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit faf8a08

Browse files
author
Ændrew Rininsland
committed
Merge pull request github-tools#92 from camptocamp/contents_api
Use /:path instead of ?path=:path to get contents
2 parents 5ef36d7 + d42c54b commit faf8a08

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
@@ -497,7 +497,7 @@
497497
// --------
498498

499499
this.contents = function(ref, path, cb) {
500-
_request("GET", repoPath + "/contents/"+path, { ref: ref }, cb);
500+
_request("GET", repoPath + "/contents" + (path ? "/" + path : ""), { ref: ref }, cb);
501501
};
502502

503503
// Fork repository

0 commit comments

Comments
 (0)