def hg_to_git_name(hg_name, git_suffix, is_bare=False):
    """Convert Hg repo name to Git repo name."""

    bare_suffix = "_bare" if is_bare else ""
    git_name = f"{hg_name}{git_suffix}{bare_suffix}"
    return git_name