diff --git a/src/git.ts b/src/git.ts index 865a19da..eea87892 100644 --- a/src/git.ts +++ b/src/git.ts @@ -18,16 +18,11 @@ export async function init(action: ActionInterface): Promise { await execute(`git init`, action.workspace) await execute(`git config user.name "${action.name}"`, action.workspace) await execute(`git config user.email "${action.email}"`, action.workspace) - - try { - await execute(`git remote rm origin`, action.workspace) - } finally { - await execute( - `git remote add origin ${action.repositoryPath}`, - action.workspace - ) - } - + await execute(`git remote rm origin`, action.workspace) + await execute( + `git remote add origin ${action.repositoryPath}`, + action.workspace + ) await execute(`git fetch`, action.workspace) info('Git configured… 🔧') diff --git a/yarn.lock b/yarn.lock index 9c197d34..eb624293 100644 --- a/yarn.lock +++ b/yarn.lock @@ -557,7 +557,7 @@ "@types/istanbul-lib-coverage" "*" "@types/istanbul-lib-report" "*" -"@types/jest@25.2.3": +"@types/jest@25.1.4": version "25.1.4" resolved "https://registry.yarnpkg.com/@types/jest/-/jest-25.1.4.tgz#9e9f1e59dda86d3fd56afce71d1ea1b331f6f760" dependencies: