mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Git - fix regular expression for fully qualified ref names (#193953)
This commit is contained in:
@@ -2402,7 +2402,7 @@ export class Repository {
|
||||
args.push('--ignore-case');
|
||||
}
|
||||
|
||||
if (/^refs\/(head|remotes)\//i.test(name)) {
|
||||
if (/^refs\/(heads|remotes)\//i.test(name)) {
|
||||
args.push(name);
|
||||
} else {
|
||||
args.push(`refs/heads/${name}`, `refs/remotes/${name}`);
|
||||
|
||||
Reference in New Issue
Block a user