Git - fix regular expression for fully qualified ref names (#193953)

This commit is contained in:
Ladislau Szomoru 2023-09-25 11:25:51 +02:00 committed by GitHub
parent 070168a062
commit 419e445f8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}`);