composer/composer — pull request #413 by simensen (2012-03-08 23:41:31+00:00)
Title: Attempt to fix GitHub 404 treated as auth challenges for non-private repos

I don't know if it is really as simple as this, but it appears to work for case where GitHub returns legit 404 for an invalid repository and requests password for private repository and does nothing at all for 404 during parts of discovery process where 404 might be legit (i.e., looking for composer.json in branches that do not have composer.json ).

This solution may be too naive. Anything more than this may require some heavy lifting and trying to understand why `RemoteFilesystem` has to be instantiated for each get request instead of reusing it for all requests for a given instance of a `VcsDriver`.

Refs #411