def _check_valid_ref_file(refname):
    """
    refname should not start with / (ie absoulte path)
    or ..
    """
    if refname.startswith('/'):
        return False
    if refname.startswith('..'):
        return False
    return True