composer/composer — pull request #1162 by machee (2012-09-30 16:19:47+00:00)
Title: Attempt user/pass authentication for git repos not on github

If git clone fails because of authentication, the repo isn't on github, and the url has http or https scheme composer should attempt http basic authentication.

Also, ask if the user would like to reuse the user/pass for repos at the same scheme://domain