diff --git a/src/worktree.ts b/src/worktree.ts index 57a35de99..0d8629553 100644 --- a/src/worktree.ts +++ b/src/worktree.ts @@ -101,13 +101,11 @@ export async function generateWorktree( 'Error encountered while checking out branch. Attempting to continue with a new branch name.' ) - if (branchExists) { - await execute( - `git fetch --no-recurse-submodules --depth=1 origin ${action.branch}`, - `${action.workspace}/${worktreedir}`, - action.silent - ) - } + await execute( + `git fetch`, + `${action.workspace}/${worktreedir}`, + action.silent + ) branchName = `temp-${Date.now()}` checkout = new GitCheckout(branchName, `origin/${action.branch}`)