Show proper error message when a git bitbucket repo is loaded as hg repo, refs composer/packagist#294