Skip to content

Commit

Permalink
Update git.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Apr 23, 2022
1 parent 273c87e commit 7eb191b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ export async function init(action: ActionInterface): Promise<void | Error> {
info(`Deploying using ${action.tokenType}… 🔑`)
info('Configuring git…')

// try {
// await execute(
// `git config --global --add safe.directory "${action.workspace}"`,
// action.workspace,
// action.silent
// )
// } catch {
// info('Unable to set workspace as a safe directory…')
// }
try {
await execute(
`git config --global --add safe.directory "${action.workspace}"`,
action.workspace,
action.silent
)
} catch {
info('Unable to set workspace as a safe directory…')
}

await execute(
`git config user.name "${action.name}"`,
Expand Down

0 comments on commit 7eb191b

Please sign in to comment.