diff options
| author | John Wesley Walker III <81404201+jww3@users.noreply.github.com> | 2024-03-13 20:45:21 +0000 |
|---|---|---|
| committer | John Wesley Walker III <81404201+jww3@users.noreply.github.com> | 2024-03-13 20:45:21 +0000 |
| commit | 205f428bdbe280d53c25bff14ccfa1f46727abaf (patch) | |
| tree | 56b0109f7f0fa578ca3c864930a2a64ffa6a5b1b /dist/index.js | |
| parent | c84834fc33f798a5abb52bfbe8fcca44bf2fb135 (diff) | |
Bump `MinimumGitVersion` to 2.28 due to #1386jww3-minversion-v5
Diffstat (limited to 'dist/index.js')
| -rw-r--r-- | dist/index.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/dist/index.js b/dist/index.js index 42e0297..72e40d8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -480,8 +480,8 @@ const retryHelper = __importStar(__nccwpck_require__(2155)); const git_version_1 = __nccwpck_require__(3142); // Auth header not supported before 2.9 // Wire protocol v2 not supported before 2.18 -// sparse-checkout not supported before 2.25 -exports.MinimumGitVersion = new git_version_1.GitVersion('2.25'); +// sparse-checkout not [well-]supported before 2.28 (see https://github.com/actions/checkout/issues/1386) +exports.MinimumGitVersion = new git_version_1.GitVersion('2.28'); function createCommandManager(workingDirectory, lfs, doSparseCheckout) { return __awaiter(this, void 0, void 0, function* () { return yield GitCommandManager.createCommandManager(workingDirectory, lfs, doSparseCheckout); @@ -937,13 +937,6 @@ class GitCommandManager { } } this.doSparseCheckout = doSparseCheckout; - if (this.doSparseCheckout) { - // The `git sparse-checkout` command was introduced in Git v2.25.0 - const minimumGitSparseCheckoutVersion = new git_version_1.GitVersion('2.25'); - if (!gitVersion.checkMinimum(minimumGitSparseCheckoutVersion)) { - throw new Error(`Minimum Git version required for sparse checkout is ${minimumGitSparseCheckoutVersion}. Your git ('${this.gitPath}') is ${gitVersion}`); - } - } // Set the user agent const gitHttpUserAgent = `git/${gitVersion} (github-actions-checkout)`; core.debug(`Set git useragent to: ${gitHttpUserAgent}`); |
