Skip to content

Commit 7d9fcfb

Browse files
committed
Merge pull request #33 from philschatz/content-in-branches
Added branch argument to repo.contents()
2 parents 1689859 + 5104e13 commit 7d9fcfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@
325325
// Get contents
326326
// --------
327327

328-
this.contents = function(path, cb) {
329-
_request("GET", repoPath + "/contents", { path: path }, cb);
328+
this.contents = function(branch, path, cb) {
329+
_request("GET", repoPath + "/contents?ref=" + branch, { path: path }, cb);
330330
};
331331

332332
// Fork repository

0 commit comments

Comments
 (0)