I am trying to get Composer do download the latest commit for the Behat/MinkSelenium2Driver package. That particular repo only has a master branch. I have tried every method I c
In our case, none of the previous answers were working. It turned out to be something simple:
Composer only uses the repositories attribute of the ROOT composer.json
https://getcomposer.org/doc/04-schema.md#repositories
In our case, we were trying to get the latest commit from dev-master of one of our transitive dependencies. There was some problem with the hooks between github and packagist preventing it from working like normal and it took us a couple hours to realize that we were editing the wrong composer.json (the one from our library that carries the dependency) instead of the top-level composer.json that we were installing.