disable "Git is required for non-read-only agents: Not in a git repository" #435
Replies: 4 comments
-
|
Do you mind running Code on it and asking it why it can't see your .git directory? The information it provides would be super helpful! |
Beta Was this translation helpful? Give feedback.
-
|
Or alternatively could you run these two commands and tell me the output? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
if anyone else gets this issue, my solution was to use the absolute path for agents e.g. "C:\Users\YourUser\AppData\Roaming\npm\coder.cmd" or "C:\Users\YourUser\AppData\Roaming\npm\gemini.cmd" and so on. I randomly remembered that this was the solution I used when codex initially released and did not natively work on Windows properly but then I had to force set codex to absolute path in my PowerShell. Hope this helps someone else. P.S. sadly I'm new to development and can't really review the source code to pinpoint the issue accurately. P.S.P.S. Adding the absolute paths to PATH would not reccomend, I had issues with IDEs and other NPM packages when I did that with codex months back. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
for some reason code subagents can't see my git, every single other software, CLI & IDE work.
How do I disable the damn thing or how do I hardcode git cmd path for code so it can finally allocate it?
Beta Was this translation helpful? Give feedback.
All reactions