def is_git_root(path, log_error=True):
    try:
        rv = git('rev-parse', '--show-cdup', repo=path, log_error=log_error)
    except subprocess.CalledProcessError:
        return False
    return (rv == b'\n')
def is_git_root(path, log_error=True):
    try:
        rv = git('rev-parse', '--show-cdup', repo=path, log_error=log_error)
    except subprocess.CalledProcessError:
        return False
    return (rv == b'\n')