Skip to content

Commit 58ab918

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)