def METHOD_NAME(src, *args, **kwargs):
    # Probe for -C
    try:
        out, _, status = process.run_subprocess_with_out_and_err(
            "git -C {} --version".format(io.escape_path(src)))
    except FileNotFoundError:
        status = 1
    if status != 0:
        raise exceptions.SystemSetupError("Error invoking 'git', please install (or re-install).")
    match = re.search(VERSION_REGEX, out)
    if not match or int(match.group(1)) < MIN_REQUIRED_MAJOR_VERSION:
        raise exceptions.SystemSetupError("OpenSearch Benchmark requires at least version 2 of git.  "
                                          f"You have {out}.  Please update git.")
    return f(src, *args, **kwargs)