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