FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Reference.TYPE.LISTALL is depreciated in favour of TYPE.ALL · nodejs-experiments/nodegit@58ab918 · GitHub

Repository navigation

Commit 58ab918

Browse files
committed
Reference.TYPE.LISTALL is depreciated in favour of TYPE.ALL
1 parent d0bb116 commit 58ab918

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/repository.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Repository.initExt = function(repo_path, opts) {
352352
Repository.getReferences = function(repo, type, refNamesOnly) {
353353
return repo.getReferences().then(function(refList) {
354354
var filteredRefList = refList.filter(function(reference) {
355-
return type === Reference.TYPE.LISTALL || reference.type === type;
355+
return type === Reference.TYPE.ALL || reference.type === type;
356356
});
357357

358358
if (refNamesOnly) {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL