Skip to content

Commit

Permalink
Fix: Allow " and ' in commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Dec 21, 2020
1 parent ca06702 commit 82b20c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/git.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
if (\is_string($issues)) {
$output .= "\n\n" . \wordwrap($issues, $crop);
}
runLocally("git commit -m '$output'");
$output = str_replace('"', '\"', $output);
runLocally("git commit -m \"$output\"");

writeln(' ');
})->once()->shallow();
Expand Down

0 comments on commit 82b20c8

Please sign in to comment.