def deploy_branch_exists(deploy_branch):
remote_name = '<STR_LIT>'<EOL>branch_names = subprocess.check_output(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']).decode('<STR_LIT:utf-8>').split()<EOL>return '<STR_LIT>'.format(remote_name, deploy_branch) in branch_names<EOL>
Check if there is a remote branch with name specified in ``deploy_branch``.

Note that default ``deploy_branch`` is ``gh-pages`` for regular repos and
``master`` for ``github.io`` repos.

This isn't completely robust. If there are multiple remotes and you have a
``deploy_branch`` branch on the non-default remote, this won't see it.