From 3a7b2f37ed543ab6bfbd579cdb270c41a9186abc Mon Sep 17 00:00:00 2001 From: Jacob Rossi Date: Thu, 9 May 2013 21:14:43 -0700 Subject: [PATCH] Update README.md Fixed function signature of repo.contents() --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4674fda1..5ccbe257 100644 --- a/README.md +++ b/README.md @@ -38,10 +38,10 @@ Show repository information repo.show(function(err, repo) {}); ``` -Get contents at a particular path. +Get contents at a particular path in a particular branch. ```js -repo.contents("path/to/dir", function(err, contents) {}); +repo.contents("master", "path/to/dir", function(err, contents) {}); ``` Fork repository. This operation runs asynchronously. You may want to poll for `repo.contents` until the forked repo is ready.