Adds support for deploying from different branches.