Revert "Allow a non-master branch to be built"
This can be done by specifying the ref of another branch, which will be
built instead.

This reverts commit d6be2015c364a7097881b5a0f0b650fca89aa75d.