mirror of
https://github.com/actions/checkout.git
synced 2026-01-03 17:32:21 +08:00
Compare commits
2 Commits
dependabot
...
841177bb31
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
841177bb31 | ||
|
|
a0847da780 |
@@ -17,4 +17,4 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Publish
|
- name: Publish
|
||||||
id: publish
|
id: publish
|
||||||
uses: actions/publish-immutable-action@v0.0.4
|
uses: actions/publish-immutable-action@0.0.3
|
||||||
|
|||||||
2
.github/workflows/update-test-ubuntu-git.yml
vendored
2
.github/workflows/update-test-ubuntu-git.yml
vendored
@@ -48,7 +48,7 @@ jobs:
|
|||||||
|
|
||||||
# Use `docker/build-push-action` to build (and optionally publish) the image.
|
# Use `docker/build-push-action` to build (and optionally publish) the image.
|
||||||
- name: Build Docker Image (with optional Push)
|
- name: Build Docker Image (with optional Push)
|
||||||
uses: docker/build-push-action@v6.10.0
|
uses: docker/build-push-action@v6.5.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: images/test-ubuntu-git.Dockerfile
|
file: images/test-ubuntu-git.Dockerfile
|
||||||
|
|||||||
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -588,6 +588,8 @@ class GitCommandManager {
|
|||||||
disableSparseCheckout() {
|
disableSparseCheckout() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
yield this.execGit(['sparse-checkout', 'disable']);
|
yield this.execGit(['sparse-checkout', 'disable']);
|
||||||
|
// Ensures that a previously enabled 'sparse-checkout' (e.g. via sparseCheckoutNonConeMode) is also disabled in the config.
|
||||||
|
yield this.execGit(['config', 'core.sparseCheckout', 'false']);
|
||||||
// Disabling 'sparse-checkout` leaves behind an undesirable side-effect in config (even in a pristine environment).
|
// Disabling 'sparse-checkout` leaves behind an undesirable side-effect in config (even in a pristine environment).
|
||||||
yield this.tryConfigUnset('extensions.worktreeConfig', false);
|
yield this.tryConfigUnset('extensions.worktreeConfig', false);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -178,6 +178,8 @@ class GitCommandManager {
|
|||||||
|
|
||||||
async disableSparseCheckout(): Promise<void> {
|
async disableSparseCheckout(): Promise<void> {
|
||||||
await this.execGit(['sparse-checkout', 'disable'])
|
await this.execGit(['sparse-checkout', 'disable'])
|
||||||
|
// Ensures that a previously enabled 'sparse-checkout' (e.g. via sparseCheckoutNonConeMode) is also disabled in the config.
|
||||||
|
yield this.execGit(['config', 'core.sparseCheckout', 'false']);
|
||||||
// Disabling 'sparse-checkout` leaves behind an undesirable side-effect in config (even in a pristine environment).
|
// Disabling 'sparse-checkout` leaves behind an undesirable side-effect in config (even in a pristine environment).
|
||||||
await this.tryConfigUnset('extensions.worktreeConfig', false)
|
await this.tryConfigUnset('extensions.worktreeConfig', false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user