Skip to content

Commit

Permalink
fix: Trims
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Jul 20, 2022
1 parent 331dd26 commit ccec059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export async function deploy(action: ActionInterface): Promise<Status> {

// If the push failed for any fatal reason other than being rejected,
// there is a problem
if (!rejected && pushResult.stderr.startsWith('fatal:'))
if (!rejected && pushResult.stderr.trim().startsWith('fatal:'))
throw new Error(pushResult.stderr)
} while (rejected)
}
Expand Down

0 comments on commit ccec059

Please sign in to comment.