jedbrown / git-fat

Simple way to handle fat files without committing them to git, supports synchronization using rsync
BSD 2-Clause "Simplified" License
621 stars 137 forks source link

fix "git fat pull" for fancy named files #12

Closed michaelcontento closed 11 years ago

michaelcontento commented 11 years ago

Hi,

in this PR I've just added -z to git ls-files and the result is split at \x00 instead of \n (as this is the new separator).

A simple change but now we're getting the original filename back from git and are able to handle names containing spaces and/or fancy utf8 characters.

Feel free to request changes if I missed something crucial.

jedbrown commented 11 years ago

Thanks, this looks good. There are a couple other places that either

Anyway, these are topics for another time, so I'll merge this patch as is. (Nit: it's nice to use the same quote character as is used nearby unless there is a reason to use a different one.)