ysageev
### What happened? [ACTION REQUIRED] ๐ PLEASE ATTACH THE EXPORTED CHAT HISTORY JSON FILE TO THIS ISSUE IF YOU FEEL COMFORTABLE SHARING IT. ### What did you expect to happen? Since am not allowed to paste or even type in the "What happened?" box, I am putting the meat of this report here. Yes, "Write" was selected. ---- Summary Running any standard git command (such as git status, git log, or git diff) on Windows via the shell execution tool fails immediately with: fatal: unable to access 'NUL': Invalid argument. What Happened In @google/gemini-cli (v0.62.0), the shell execution environment sanitizer sets GIT_CONFIG_GLOBAL to "NUL" on Windows (using os.platform() === "win32" ? "NUL" : "/dev/null"). On Windows, Git for Windows uses an MSYS2/POSIX compatibility layer. When Git evaluates the configuration file path provided in GIT_CONFIG_GLOBAL, it executes an access() check. In the Windows POSIX runtime, calling access on "NUL" returns EINVAL (Invalid argument) because NUL is a DOS character device rather than a valid file path. Consequently, Git aborts immediately with a fatal error before executing the command. Expected Behavior Git commands should execute successfully without failing to access NUL. Git for Windows' POSIX emulation layer already translates "/dev/null" to an empty device. Changing the path to remain "/dev/null" (or an empty string "" on Windows) allows Git for Windows to read an empty configuration and execute cleanly. Proposed Fix In @google/gemini-cli bundle files (chunk-MLY4WQFO.js and chunk-2DHAEQE2.js), change devNullPath from "NUL" to "/dev/null" (or empty string "") on win32. ### Client information * **CLI Version:** 0.62.0 * **Git Commit:** b460678f3 * **Session ID:** 816fcc9e-2755-4d28-8a49-c0a98586844a * **Operating System:** win32 v24.18.0 * **Sandbox Environment:** no sandbox * **Model Version:** gemini-flash-latest * **Auth Type:** gemini-api-key * **Memory Usage:** 669.2 MB * **Terminal Name:** Unknown * **Terminal Background:** #282c34 * **Kitty Keyboard Protocol:** Unsupported ### Login information Gemini API Key ### Anything else we need to know? Code references in `@google/gemini-cli` bundle: - `chunk-MLY4WQFO.js` (lines 313287 and 323565) - `chunk-2DHAEQE2.js` (lines 314963 and 325574) // Current: const devNullPath = os.platform() === "win32" ? "NUL" : "/dev/null"; // Fix: const devNullPath = os.platform() === "win32" ? "" : "/dev/null"; // (or leave as "/dev/null" across all platforms)