Git - Update getRefs pattern when querying for branches and tags (#171605)

This commit is contained in:
Ladislau Szomoru
2023-01-18 12:41:32 +01:00
committed by GitHub
parent e7d34457a5
commit 9a9d7bfdde
2 changed files with 4 additions and 5 deletions

View File

@@ -2092,7 +2092,7 @@ export class Repository {
HEAD = await this.getBranch(HEAD.name);
} else if (HEAD.commit) {
// Tag || Commit
const tags = await this.getRefs({ pattern: 'refs/tags/*' });
const tags = await this.getRefs({ pattern: 'refs/tags' });
const tag = tags.find(tag => tag.commit === HEAD!.commit);
if (tag) {