Skip to content

Commit

Permalink
🐛 Fix commit message escaping (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezfr authored Feb 10, 2022
1 parent 65c5a73 commit 8f9e9fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17640,7 +17640,7 @@ class Git {
message += `\n\n${ COMMIT_BODY }`
}
return execCmd(
`git commit -m "${ message.replace(/"/g, '\\"') }"`,
`git commit -m '${ message.replace(/'/g, '\'\\\'\'') }'`,
this.workingDir
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class Git {
message += `\n\n${ COMMIT_BODY }`
}
return execCmd(
`git commit -m "${ message.replace(/"/g, '\\"') }"`,
`git commit -m '${ message.replace(/'/g, '\'\\\'\'') }'`,
this.workingDir
)
}
Expand Down

0 comments on commit 8f9e9fd

Please sign in to comment.