From ed9ce077ed1c3e13c4c9522a5defd266085fd67b Mon Sep 17 00:00:00 2001 From: James Ives Date: Sat, 11 Jan 2020 19:48:09 -0500 Subject: [PATCH] Additional Changes --- lib/git.js | 2 +- src/git.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/git.js b/lib/git.js index 0760c46a..13957796 100644 --- a/lib/git.js +++ b/lib/git.js @@ -34,7 +34,7 @@ function init() { yield util_1.execute(`git init`, constants_1.workspace); yield util_1.execute(`git config user.name ${constants_1.action.name}`, constants_1.workspace); yield util_1.execute(`git config user.email ${constants_1.action.email}`, constants_1.workspace); - yield util_1.execute(`git pull --rebase ${constants_1.repositoryPath}`, constants_1.workspace); + yield util_1.execute(`git fetch`, constants_1.workspace); } catch (error) { core.setFailed(`There was an error initializing the repository: ${error}`); diff --git a/src/git.ts b/src/git.ts index fbeeb36f..8681d92e 100644 --- a/src/git.ts +++ b/src/git.ts @@ -22,7 +22,7 @@ export async function init(): Promise { await execute(`git init`, workspace); await execute(`git config user.name ${action.name}`, workspace); await execute(`git config user.email ${action.email}`, workspace); - await execute(`git pull --rebase ${repositoryPath}`, workspace); + await execute(`git fetch`, workspace); } catch (error) { core.setFailed(`There was an error initializing the repository: ${error}`); } finally {