diff --git a/lib/repository.js b/lib/repository.js index 00ce320c1..64d566dcd 100644 --- a/lib/repository.js +++ b/lib/repository.js @@ -340,7 +340,7 @@ Repository.discover = function(startPath, acrossFs, ceilingDirs) { Repository.getReferences = function(repo, type, refNamesOnly) { return repo.getReferences().then(function(refList) { var filteredRefList = refList.filter(function(reference) { - return type === Reference.TYPE.ALL || reference.type === type; + return type === Reference.TYPE.ALL || reference.type( ) === type; }); if (refNamesOnly) {