From 419e445f8d8299484276d5a42e11998165ce77b3 Mon Sep 17 00:00:00 2001 From: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> Date: Mon, 25 Sep 2023 11:25:51 +0200 Subject: [PATCH] Git - fix regular expression for fully qualified ref names (#193953) --- extensions/git/src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/git/src/git.ts b/extensions/git/src/git.ts index f8e080e76fd..129a8045fef 100644 --- a/extensions/git/src/git.ts +++ b/extensions/git/src/git.ts @@ -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}`);