diff --git a/src/git.ts b/src/git.ts index cc20f8b..aac8220 100644 --- a/src/git.ts +++ b/src/git.ts @@ -18,7 +18,7 @@ export function commitFile(path: string, message: string, cwd = process.cwd()): export function commitFileWithBody(path: string, header: string, body: string, cwd = process.cwd()): void { execSync(`git add ${path}`, { cwd }) const msg = `${header}\n\n${body}` - execSync(`git commit -m ${JSON.stringify(msg)}`, { cwd }) + execSync(`git commit -F -`, { cwd, input: msg }) } export function branchExists(branch: string, cwd = process.cwd()): boolean {