def METHOD_NAME(src_dir, *, branch):
    if process.run_subprocess_with_logging(f"git -C {io.escape_path(src_dir)} checkout {branch}"):
        raise exceptions.SupplyError("Could not checkout [%s]. Do you have uncommitted changes?" % branch)