Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 4f3402201c220df6a533734debc9f5e6b13c4724 1 parent 3a8e8b4
@cholin cholin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/repo.js
View
2  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) {
Please sign in to comment.
Something went wrong with that request. Please try again.