Ledazinha
Ledazinha

Reputation: 319

git status: bad filename results in "protocol error"

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?

Upvotes: 1

Views: 228

Answers (1)

VonC
VonC

Reputation: 1324347

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.

Upvotes: 1

Related Questions