statamic / spock

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

Issue with localization #22

Closed jay-chin closed 5 years ago

jay-chin commented 5 years ago

Is there something I can do to make spock work for localized content ? Spock seems to try and add files from the non-localized paths

From the logs:

[2018-09-13 07:37:18] staging.ERROR: Spock command exited unsuccessfully:
Command: git add /var/www/statamic/site/content/collections/learn/jay-chin-testing-page.md
Output: No output
Error: 
fatal: pathspec '/var/www/statamic/site/content/collections/learn/jay-chin-testing-page.md' did not match any files

Files that were actually modified:

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    collections/learn/au/_jay-chin-testing-page.md
    collections/learn/ce/_jay-chin-testing-page.md
    collections/learn/cf/_jay-chin-testing-page.md
    collections/learn/de/_jay-chin-testing-page.md
    collections/learn/es/_jay-chin-testing-page.md
    collections/learn/gb/_jay-chin-testing-page.md
    collections/learn/gl/_jay-chin-testing-page.md
    collections/learn/it/_jay-chin-testing-page.md
    collections/learn/jp/_jay-chin-testing-page.md
    collections/learn/mx/_jay-chin-testing-page.md
    collections/learn/nl/_jay-chin-testing-page.md
jesseleite commented 5 years ago

Oh interesting. Will take a look thanks!

tennercoffee commented 5 years ago

hey @JesseLeite @jay-chin any updates on this? we had a Japan markdown page wipe itself clean today, and I'm wondering if this is related.

jesseleite commented 5 years ago

@tennercoffee Spock may not be git add-ing proper paths to localized content sometimes, but it’s not messing with actual content. Not sure how it would be related?

jesseleite commented 5 years ago

Should be fixed in next Statamic update @jay-chin @tennercoffee 🤘

tennercoffee commented 5 years ago

Thanks Jesse!

On Tue, Dec 11, 2018, 8:13 AM Jesse Leite <notifications@github.com wrote:

Should be fixed in next update @jay-chin https://github.com/jay-chin @tennercoffee https://github.com/tennercoffee 🤘

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/statamic/spock/issues/22#issuecomment-446237602, or mute the thread https://github.com/notifications/unsubscribe-auth/AMynmOA9D4WB0yWdBsi79KPG0gwn4fAyks5u38uvgaJpZM4WneY6 .

jay-chin commented 5 years ago

Thanks !