Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spock logs errors if entires are sorted by date #43

Open
Jokedos123 opened this issue Oct 3, 2019 · 1 comment
Open

Spock logs errors if entires are sorted by date #43

Jokedos123 opened this issue Oct 3, 2019 · 1 comment

Comments

@Jokedos123
Copy link

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.

@fitzage
Copy link

fitzage commented Apr 30, 2020

This is what I came to report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants