It can happen on Windows if xxx is a very long string and long paths are disabled.
Even fetch won't work.
Running this restores things to working order:
git config --global core.longpaths true