Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:dodo/node-git

  • Loading branch information...
commit baff4436892fb8222655298f284dcc278f3da107 2 parents cb04773 + ad1d634
@dodo dodo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/git/tree.js
View
2  lib/git/tree.js
@@ -122,7 +122,7 @@ Tree.prototype.find = function(file) {
var paths = file.split('/');
paths.length > 0 && paths[paths.length - 1] == '' ? paths.pop() : null;
return paths.map(function(x) {
- return self.find(x);
+ return self && (self = self.find(x));
});
} else {
var results = self.contents.filter(function(c) {
Please sign in to comment.
Something went wrong with that request. Please try again.