From de8fe44d5dd2a0001a635ff053f97611e029282e Mon Sep 17 00:00:00 2001 From: James Ives Date: Sat, 12 Sep 2020 17:54:53 -0400 Subject: [PATCH] Update git.ts --- src/git.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/git.ts b/src/git.ts index 7f745ad0..1feddde3 100644 --- a/src/git.ts +++ b/src/git.ts @@ -149,20 +149,22 @@ export async function deploy(action: ActionInterface): Promise { // Checks out the base branch to begin the deployment process. await switchToBaseBranch(action) + await execute( + `git fetch ${action.repositoryPath}`, + action.workspace, + action.silent + ) + if (action.lfs) { // Migrates data from LFS so it can be comitted the "normal" way. + info(`Migrating from Git LFS… ⚓`) await execute( `git lfs migrate export --include="*"`, action.workspace, action.silent ) } - - await execute( - `git fetch ${action.repositoryPath}`, - action.workspace, - action.silent - ) + await execute( `git worktree add --checkout ${temporaryDeploymentDirectory} origin/${action.branch}`, action.workspace,