statamic / spock

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

Errors firing when there is no Error from git #48

Open lachieh opened 4 years ago

lachieh commented 4 years ago

There seems to be an issue with the git command exiting unsuccessfully, but the error returned suggests that there is no issues with the command. Here is an example:

ERROR
Spock command exited unsuccessfully:
Command: git -c "user.name=statamic" -c "user.email=REDACTED" commit -m "Page saved by Admin"
Output:
On branch cms
Your branch is up to date with 'origin/cms'.
nothing to commit, working tree clean
Error: No error

Is this something that can be filtered out? I can't imagine a point where "Error: No error" actually means the opposite 😂.