Permalink
Browse files

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

  • Loading branch information...
2 parents cb04773 + ad1d634 commit baff4436892fb8222655298f284dcc278f3da107 @dodo dodo committed May 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/git/tree.js
View
@@ -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) {

0 comments on commit baff443

Please sign in to comment.