Thinkmill/keystatic

Filenames with umlauts break git workflow => Rename files before commit

tordans opened this issue · 3 comments

I had this issue way back when I used cloudcannon in another company:

When you upload a file like Übesicht Kommunensteckbriefe Text.png via the web UI, this file is stored unter this name in Github:

image

However, when you pull your change to a Mac git is super confused and run into a loop:

It shows the files as "new", even though nothing changed:

image

When you then discard those changes that you never did…

image

… the files still show up as changes:

image

You can discard those changes and get back to the version with the green + from above. Its a loop.

From what I remember, this has to do with different encoding settings in Git (maybe only on the mac).
Years ago I tried fiddeling with different git settings but that only caused different issues.

This is the article I bookmarked back then https://stackoverflow.com/questions/5581857/git-and-the-umlaut-problem-on-mac-os-x

I tried the core.precomposeunicode again today but that did not change anything.


Given this issue, it would be awesome to have an option that renamed files when they are uploaded to an URL save version. Like a sluggified filename.

Is something like this possible in Keystatic?

#1116 is related. I don't have the issue with spaces but it could also be solved by modifying the image file name during upload.

Yes, I have the exact same issue here. Just having option to create random unique filenames will solve it

Option like uniqueFilename which will generate random filename will be so amazing:

image