Makes check (#332)

This commit is contained in:
James Ives 2020-06-15 10:26:44 -04:00 committed by GitHub
parent 2ce22fae3a
commit dce3848163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,11 +19,16 @@ export async function init(action: ActionInterface): Promise<void | Error> {
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)
await execute(`git remote rm origin`, action.workspace)
await execute(
`git remote add origin ${action.repositoryPath}`,
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 fetch --no-recurse-submodules`, action.workspace)
info('Git configured… 🔧')