Skip to content

Commit b4a89a4

Browse files
authored
Use quotes for commit message, not apostrophes
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.
1 parent d9564a8 commit b4a89a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/Spock/Git.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function commands()
3636
$commands[] = "git add {$path}";
3737
}
3838

39-
$commands[] = vsprintf("git commit -m '%s%s'", [
39+
$commands[] = vsprintf('git commit -m "%s%s"', [
4040
$this->label(),
4141
$this->user ? ' by ' . $this->user->username() : ''
4242
]);

0 commit comments

Comments
 (0)