Skip to content

Commit 5e6b158

Browse files
committed
added windows specific bug fix for bare git repos.
1 parent 71c63f9 commit 5e6b158

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/services/checkpoints/ShadowCheckpointService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ export abstract class ShadowCheckpointService extends EventEmitter {
120120
this.log(`[${this.constructor.name}#initShadowGit] creating shadow git repo at ${this.checkpointsDir}`)
121121
await git.init()
122122
await git.addConfig("core.worktree", this.workspaceDir) // Sets the working tree to the current workspace.
123+
// Fix Windows Git configuration conflict: explicitly set core.bare=false when using core.worktree
124+
// This resolves "core.bare and core.worktree do not make sense" error on Windows
125+
await git.addConfig("core.bare", "false")
123126
await git.addConfig("commit.gpgSign", "false") // Disable commit signing for shadow repo.
124127
await git.addConfig("user.name", "Roo Code")
125128
await git.addConfig("user.email", "[email protected]")

0 commit comments

Comments
 (0)