@@ -14,11 +14,11 @@ import {
1414import { ConfigurationError , getRequiredEnvParam } from "./util" ;
1515
1616/**
17- * Minimum Git version required for overlay analysis. The
18- * `git ls-files -- recurse-submodules` option, which is used by
19- * `getFileOidsUnderPath`, was introduced in Git 2.11.0 .
17+ * Minimum Git version required for overlay analysis. Support for using the `git ls-files
18+ * -- recurse-submodules` option with `--stage` was added in Git 2.36.0. For more information, see
19+ * `getFileOidsUnderPath`.
2020 */
21- export const GIT_MINIMUM_VERSION_FOR_OVERLAY = "2.11 .0" ;
21+ export const GIT_MINIMUM_VERSION_FOR_OVERLAY = "2.36 .0" ;
2222
2323/**
2424 * Git version information
@@ -261,8 +261,8 @@ export const getFileOidsUnderPath = async function (
261261 // Without the --full-name flag, the path is relative to the current working
262262 // directory of the git command, which is basePath.
263263 //
264- // We use --stage rather than --format here because --stage has been available since Git 2.11 .0,
265- // while --format was only introduced in Git 2.38.0, which would limit overlay rollout .
264+ // We use --stage rather than --format here because --stage has been available since Git 2.36 .0,
265+ // while --format was only introduced in Git 2.38.0.
266266 const stdout = await runGitCommand (
267267 basePath ,
268268 [ "ls-files" , "--recurse-submodules" , "--stage" ] ,
0 commit comments