We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43387b1 commit 4de36f9Copy full SHA for 4de36f9
src/services/checkpoints/ShadowCheckpointService.ts
@@ -31,7 +31,7 @@ export abstract class ShadowCheckpointService extends EventEmitter {
31
// --- CHANGE START: Add cache for nested git repo paths ---
32
// --- ADDITION: GC related properties ---
33
private gcCounter: number = 0
34
- private readonly GC_CHECKPOINT_THRESHOLD: number = 20 // Run gc every 20 checkpoints
+ private readonly GC_CHECKPOINT_THRESHOLD: number = Number(process.env.GC_CHECKPOINT_THRESHOLD) || 20 // Run gc every 20 checkpoints
35
private _nestedGitDirPaths: string[] | null = null // Cache for relative paths like "submodule/.git"
36
// --- CHANGE END: Add cache for nested git repo paths ---
37
protected shadowGitConfigWorktree?: string
0 commit comments