bower / registry

The Bower registry
https://registry.bower.io/packages
MIT License
293 stars 67 forks source link

Registering a repo with HTTPS without adding .git extension points to HTML page #227

Closed koreyconway closed 7 years ago

koreyconway commented 7 years ago

When registering a package I used https and no .git extension which caused the bower package to install the HTML page instead of the repo. This is should at the very least be documented and provide a warning. Personally I'd like to see the default be a nice error message telling the user to put ".git" or to use the "force" flag if they really wanted to set the HTML page. This is especially a problem for people who don't use GitHub for the repo and cannot fix it without creating an issue for it (as is my case).

Note: I did not test using "git" as the protocol but I'm assuming it does not have the same problem

koreyconway commented 7 years ago

This likely belong in the bower repo. Moving it there.