Fix tags for #963

This commit is contained in:
Peter Cottle 2022-05-01 12:58:29 -06:00
parent 5783a02375
commit a28879d72b

View file

@ -1843,6 +1843,7 @@ GitEngine.prototype.pruneTree = function(doPrintWarning = true) {
Object.keys(headSet).forEach(function(commitID) {
set[commitID] = true;
});
Object.keys(this.getUpstreamTagSet()).forEach(commitID => set[commitID] = true);
var toDelete = [];
this.commitCollection.each(function(commit) {
@ -1877,7 +1878,6 @@ GitEngine.prototype.pruneTree = function(doPrintWarning = true) {
return true;
};
GitEngine.prototype.getUpstreamBranchSet = function() {
return this.getUpstreamCollectionSet(this.branchCollection);
};