mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
Git - fix regular expression for fully qualified ref names (#193953)
This commit is contained in:
parent
070168a062
commit
419e445f8d
|
@ -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}`);
|
||||
|
|
Loading…
Reference in a new issue