Changes
PR #2038 by ksylvan: Add Git CLI Fallback to FetchFilesFromRepo
- Feat: add git CLI fallback to
FetchFilesFromRepofor improved compatibility - Add git CLI fallback when go-git in-memory clone fails, with detection via
exec.LookPath - Implement
fetchFilesViaGitCLIusing a shallow--depth 1clone into a temp directory with deferred cleanup - Respect
SingleDirectoryandPathPrefixoptions in the CLI path, and surface a combined error when both go-git and CLI fallback fail - Extract
fetchFilesViaGoGitinto a dedicated helper function and add acopyFilehelper to support CLI-based file extraction