def _get_branch(repo, name):
    '''
    Find the requested branch in the specified repo
    '''
    try: