1

I have a local copy of a remote git repository. Every time I execute "git status", I get this error:

git status
public/app.chart/license/Creative Commons�� Attribution-NonCommercial-ShareAlike 4.0 International�� CC BY-NC-SA 4.0.pdf: Protocol error
On branch master
Your branch is up-to-date with 'origin/master'.

Said file doesn't exist in the repository. When I switch branches, I get this message:

git checkout test_branch 
D   "public/app.chart/license/Creative Commons\200\224 Attribution-NonCommercial-ShareAlike 4.0 International\200\224 CC BY-NC-SA 4.0.pdf"
Switched to branch 'test_branch'

Is there any way to solve this problem?

Ledazinha
  • 319
  • 2
  • 13
  • It's clear from both `git status` and `git checkout` that this file *does* exist in the repository. It merely does not exist in the *work tree*, presumably because the OS rejects the path name. Are you on MacOS? What version of Git do you have? – torek Feb 10 '17 at 17:31

1 Answers1

1

Try and see if the issue persists after a:

cd /path/to/my/local/repo
git config core.quotepath false

From git config man page:

If this variable is set to false, the bytes higher than 0x80 are not quoted but output as verbatim.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250