fix(cli): preserve posix default git dir

This commit is contained in:
Vincent Koc
2026-03-23 11:49:55 -07:00
parent 7a459045de
commit 8fa91d283b

View File

@@ -121,7 +121,11 @@ export function resolveGitInstallDir(): string {
}
function resolveDefaultGitDir(): string {
return path.join(os.homedir(), "openclaw");
const home = os.homedir();
if (home.startsWith("/")) {
return path.posix.join(home, "openclaw");
}
return path.join(home, "openclaw");
}
export function resolveNodeRunner(): string {