From 4f3402201c220df6a533734debc9f5e6b13c4724 Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Thu, 19 Apr 2012 12:39:58 +0200 Subject: [PATCH] fixes #35: repo has no method 'branch' the example snippet (from readme.md) is not working anymore. It complains about a missing method 'branch'. According to aaberg this is due a wrong argument for git.util().asyncComplete(). In repo.js:14 the callback gets called with this instead of self. --- lib/repo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/repo.js b/lib/repo.js index 89de31f60..4e05f3276 100644 --- a/lib/repo.js +++ b/lib/repo.js @@ -11,7 +11,7 @@ exports.repo = function(dir, async) { if (dir && async) { self.repo.open(dir, function() { - git.util().asyncComplete.call(this, arguments, async); + git.util().asyncComplete.call(self, arguments, async); }); } else if (dir) {