Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/git-command-manager.ts
diff options
context:
space:
mode:
authorJohn Wesley Walker III <81404201+jww3@users.noreply.github.com>2024-04-23 22:07:43 +0200
committerGitHub <noreply@github.com>2024-04-23 22:07:43 +0200
commitfc9adadeb71f1b3c8f35fd5658c332d23664d77a (patch)
tree0d0e1233aaf99f930f3a0fdafba8ef1bd7cb5e76 /src/git-command-manager.ts
parenta863fa8f9d0c26747b95e47544efca00d1eaa65b (diff)
Disable `extensions.worktreeConfig` when disabling `sparse-checkout` (#1692)
Diffstat (limited to 'src/git-command-manager.ts')
-rw-r--r--src/git-command-manager.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts
index fa50321..8e42a38 100644
--- a/src/git-command-manager.ts
+++ b/src/git-command-manager.ts
@@ -178,6 +178,8 @@ class GitCommandManager {
async disableSparseCheckout(): Promise<void> {
await this.execGit(['sparse-checkout', 'disable'])
+ // Disabling 'sparse-checkout` leaves behind an undesirable side-effect in config (even in a pristine environment).
+ await this.tryConfigUnset('extensions.worktreeConfig', false)
}
async sparseCheckout(sparseCheckout: string[]): Promise<void> {