chris-barry / darkweb-everywhere

HTTPS Everywhere rulesets for hidden services and eepsites.
http://onion.im
Other
168 stars 32 forks source link

Git on Mac OS X can't handle file names with certain non-ASCII characters #24

Closed thoughtless closed 10 years ago

thoughtless commented 10 years ago

I think this console session probably explains it best:

$ uname -a
Darwin <removed for privacy> 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun  3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64

$ git --version
git version 1.8.0.2

$ git clone https://github.com/chris-barry/darkweb-everywhere.git
Cloning into 'darkweb-everywhere'...
remote: Counting objects: 165174, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 165174 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (165174/165174), 33.66 MiB | 2.91 MiB/s, done.
Resolving deltas: 100% (106458/106458), done.

$ cd darkweb-everywhere/

$ git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#   "cert-validity/mozilla/builtin-certs/NetLock_Arany_=Class_Gold=_Fo\314\213tanu\314\201si\314\201tva\314\201ny.crt"
nothing added to commit but untracked files present (use "git add" to track)

The problem file is https://github.com/chris-barry/darkweb-everywhere/blob/master/cert-validity/mozilla/builtin-certs/NetLock_Arany_=Class_Gold=_F%C5%91tan%C3%BAs%C3%ADtv%C3%A1ny.crt

Presumably renaming that file to something like Fotanusitvany would solve the problem. But I don't know if these file names are important.

This is the issue I originally mentioned in https://github.com/chris-barry/darkweb-everywhere/issues/22 but it probably deserves its own ticket.

colinmahns commented 10 years ago

Really weird. I'll test this on my Mac when I get a chance and see if I can reproduce the issue.

That file comes from the EFF's code for HTTPS-Everywhere, so a rename might be in order.

chris-barry commented 10 years ago

When I check the blame for this file, it looks like it is from upstream. However, it does seem to be a Mac Terminal related issue.

Does this question from SuperUser help at all? I do not have a Mac to try and reproduce this on.

thoughtless commented 10 years ago

@chris-barry That link wasn't the answer, but it helped me find https://stackoverflow.com/a/15553796/703108 which solved it. Thanks!

In case that gets removed or modified, the solution is:

git config --global core.precomposeunicode true

I also upgrade my git version (as that link recommended):

$ git --version
git version 2.0.4
colinmahns commented 10 years ago

Hm, wonder why Apple ships such an old version of Git. Anyway, thanks for closing this @thoughtless. If you find any more bugs please let us know!