fix: Windows git 'unable to write loose object' + venv pip path

- Set 'git config windows.appendAtomically false' in hermes update
  command (win32 only) and in install.ps1 after cloning. Fixes the
  'fatal: unable to write loose object file: Invalid argument' error
  on Windows filesystems.
- Fix venv pip fallback path: Scripts/pip on Windows vs bin/pip on Unix
- Gate .env encoding fix behind _IS_WINDOWS (no change to Linux/macOS)
This commit is contained in:
teknium1 2026-03-02 22:31:42 -08:00
parent 5749f5809c
commit 16274d5a82
2 changed files with 14 additions and 2 deletions

View file

@ -462,9 +462,13 @@ function Install-Repository {
}
}
# Fix Windows git "unable to write loose object file" error.
# Must be set before any git operations that write objects.
Push-Location $InstallDir
git config windows.appendAtomically false
# Ensure submodules are initialized and updated
Write-Info "Initializing submodules (mini-swe-agent, tinker-atropos)..."
Push-Location $InstallDir
git submodule update --init --recursive
Pop-Location
Write-Success "Submodules ready"