incredible_titan incredible_titan -3 years ago 241
Git Question

"fatal: strange pathname '-im/somerepo.git' blocked

Everything worked great until today.

I've didn't change anything on my machine.

On Ubuntu 16.04 I want to make "git fetch" from the remote repo on BitBucket, but got this error:

fatal: strange pathname '-im/somerepo.git' blocked

I've tried to:

  • Purge git and all dependent configurations

  • Drop .git folder from project

  • Reassign origin

No results. All commands dependent on the remote branch such as "fetch, pull, push, merge" don't work.

Answer Source

The leading - character caused security issues in previous versions of git. It seems your Ubuntu installation contains the fixed Debian version that blocks your fetch attempt. You should rename the repository on BitBucket, and update your local configuration accordingly.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download