From 88c2e981a8ceb27ef6b5723e97902feff18fa785 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 31 Aug 2023 02:03:20 -0400 Subject: [PATCH] Fixes issue with fetching non-current branches --- src/env/node/git/git.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/env/node/git/git.ts b/src/env/node/git/git.ts index a4f33c9..8137485 100644 --- a/src/env/node/git/git.ts +++ b/src/env/node/git/git.ts @@ -870,12 +870,7 @@ export class Git { if (options.upstream && options.pull) { params.push('-u', options.remote, `${options.upstream}:${options.branch}`); } else { - params.push( - options.remote, - options.upstream - ? `${options.upstream}:refs/remotes/${options.remote}/${options.branch}` - : options.branch, - ); + params.push(options.remote, options.upstream || options.branch); } } else if (options.remote) { params.push(options.remote);