statamic / spock

Automatically perform git commits, pushes, and other cli actions when Statamic content changes
95 stars 16 forks source link

Use quotes for commit message, not apostrophes #18

Closed alwaysblank closed 6 years ago

alwaysblank commented 6 years ago

Using apostrophes instead of quotes in some environment seems to cause git to attempt to evaluate the commit message and throw the following errors:

[2018-08-02 17:05:04] staging.ERROR: Spock command exited unsuccessfully:
Command: git commit -m 'Page saved by user'
Output: No output
Error: 
error: pathspec 'saved' did not match any file(s) known to git.
error: pathspec 'by' did not match any file(s) known to git.
error: pathspec 'user'' did not match any file(s) known to git.

The change in this commit should resolve the issue.