Get branch info for a system
    returns (dict): {'remote_branch': -1, 'remote_leaf': -1}

def get_branch_info(config, pconn):
    """
    Get branch info for a system
    returns (dict): {'remote_branch': -1, 'remote_leaf': -1}
    """
    # in the case we are running on offline mode
    # or we are analyzing a running container/image
    # or tar file, mountpoint, simply return the default branch info
    if (config.offline or
            config.analyze_container):
        return constants.default_branch_info
    return pconn.branch_info