Skip to content

Commit 2437b20

Browse files
committed
Update minimum git version for overlay to 2.36.0
1 parent 45ceeea commit 2437b20

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/init-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/git-utils.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import {
1414
import { 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

Comments
 (0)