def _get_git_post_version():
    current_tag = _get_git_current_tag()
    if current_tag is not None:
        return current_tag
    else:
        tag_info = _get_git_tag_info()
        if tag_info is None:
            base_version = "0.0"
            cmd = "git --no-pager log --oneline"
            out = _run_shell_command(cmd)
            revno = len(out.split("\n"))
        else:
            tag_infos = tag_info.split("-")
            base_version = "-".join(tag_infos[:-2])
            revno = tag_infos[-2]
        return "%s.%s" % (base_version, revno)