Reapply logic for master->ghpages branching.