spock icon indicating copy to clipboard operation
spock copied to clipboard

Spock logs errors if entires are sorted by date

Open Jokedos123 opened this issue 6 years ago • 1 comments

Hey! I have collection in statamic which is sorted by date so they are prefixed with date string. When spock is checking the affectedPaths() while adding to git, it also finds the path without the date string prefix, which does not exist anymore and therefore spock logs following error:

Command: git add '.../site/content/collections/blog-posts/foobar.md' Output: No output Error: fatal: pathspec '.../site/content/collections/blog-posts/foobar.md' did not match any files

but it also correctly adds the file which is called 2019-10-03.foobar.md to git, but it's just problematic to have false positives while handling errors.

Jokedos123 avatar Oct 03 '19 12:10 Jokedos123

This is what I came to report.

fitzage avatar Apr 30 '20 02:04 fitzage