mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 15:01:57 +01:00
Git - Update getRefs pattern when querying for branches and tags (#171605)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user