getDanglingRepos should return list not array.