Permalink
Browse files

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.
  • Loading branch information...
1 parent 3a8e8b4 commit 4f3402201c220df6a533734debc9f5e6b13c4724 @cholin cholin committed Apr 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/repo.js
View
@@ -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) {

0 comments on commit 4f34022

Please sign in to comment.