Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Reference.TYPE.LISTALL is depreciated in favour of TYPE.ALL
  • Loading branch information
tiggerite committed Jul 25, 2019
commit 58ab918c65cb5e86096c3dbce462685b20efb179
2 changes: 1 addition & 1 deletion lib/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ Repository.initExt = function(repo_path, opts) {
Repository.getReferences = function(repo, type, refNamesOnly) {
return repo.getReferences().then(function(refList) {
var filteredRefList = refList.filter(function(reference) {
return type === Reference.TYPE.LISTALL || reference.type === type;
return type === Reference.TYPE.ALL || reference.type === type;
});

if (refNamesOnly) {
Expand Down