open(o.localPath).then(function (repo) {
repository = repo;
return repo.fetchAll(credentials);
}).then(function () {
return repository.getReferenceNames(Git.Reference.TYPE.LISTALL);
}).then(function (arrayString) {
console.log(arrayString);
}).catch(err => {
reject(err);
})
I fetched all branches once (5 branches total), and I deleted one branch, local and remote, this still return 5 branches, but it should return 4 branches, how can I get new list of the branch ?