statamic / spock

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

Special characters in filenames #36

Closed alexanderhofstaetter closed 5 years ago

alexanderhofstaetter commented 5 years ago

Hi,

Some special characters in filenames are preventing spock from adding files.

Error: No error  
[2019-04-11 09:18:22] production.ERROR: Spock command exited unsuccessfully:
Command: git add /var/www/vhosts/domain.at/httpdocs/domain.at/statamic/../assets/images/1-bike-(1)marz-4.jpg
Output: No output
Error: 
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `git add /var/www/vhosts/domain.at/httpdocs/domain.at/statamic/../assets/images/bike-(1)marz-4.jpg'  
[2019-04-11 09:18:22] production.ERROR: Spock command exited unsuccessfully:
Command: git commit -m "Asset uploaded by admin"
Output: 
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   assets/images/bike-(1)marz-4.jpg
nothing added to commit but untracked files present (use "git add" to track)
jesseleite commented 5 years ago

Thanks @alexanderhofstaetter! Fixed and tagged release 👍