diff --git a/lib/git.js b/lib/git.js index 81fbe162..bdce914f 100644 --- a/lib/git.js +++ b/lib/git.js @@ -86,7 +86,7 @@ function deploy() { } // Checks out the base branch to begin the deployment process. yield util_1.execute(`git checkout ${constants_1.action.baseBranch || "master"}`, constants_1.workspace); - yield util_1.execute(`git fetch origin`, constants_1.workspace); + yield util_1.execute(`git fetch ${constants_1.repositoryPath}`, constants_1.workspace); yield util_1.execute(`git worktree add --checkout ${temporaryDeploymentDirectory} origin/${constants_1.action.branch}`, constants_1.workspace); /* Pushes all of the build files into the deployment directory. diff --git a/src/git.ts b/src/git.ts index 62aaa867..21a4f543 100644 --- a/src/git.ts +++ b/src/git.ts @@ -76,7 +76,7 @@ export async function deploy(): Promise { // Checks out the base branch to begin the deployment process. await execute(`git checkout ${action.baseBranch || "master"}`, workspace); - await execute(`git fetch origin`, workspace); + await execute(`git fetch ${repositoryPath}`, workspace); await execute( `git worktree add --checkout ${temporaryDeploymentDirectory} origin/${action.branch}`, workspace