heroku/heroku — pull request #325 by fgalassi (2012-05-22 15:21:28+00:00)
Title: allow people to use custom heroku subdomains to use ssh config and multiple identities

When using multiple identities like in the heroku accounts plugin, the preferred way is setting the heroku remote to point to a custom host like myaccount1.heroku.com, myaccount2.heroku.com, etc.., so that ssh config can be used to send different identities corresponding to different custom hosts. Unfortunately heroku won't recognize the remote anymore as a valid app (because it expects exactly heroku.com). I think it shouldn't hurt to allow custom subdomains to be matched as valid heroku apps but it would quite be useful with multiple account setups. So here my fix.

Federico