def METHOD_NAME(self) -> str:
    if git_import_error is not None:
        raise ImportError("Unable to load git module (is the git executable available?)") \
            from git_import_error
    git_url, internal_dir = self._source_subdir()
    clone_dir = self.temp_dir + "/clone/" if self.create_clone_and_res_dirs else self.temp_dir
    self._clone(git_url, clone_dir)
    if internal_dir:
        clone_dir = clone_dir + internal_dir
    if self.create_clone_and_res_dirs:
        result_dir = self.temp_dir + "/result/"
        shutil.copytree(clone_dir, result_dir)
        return result_dir
    return clone_dir