cody
cody copied to clipboard
bug: `Error: Failed to get git output.` when using commit generation
Version
v1.26.2
Describe the bug
After clicking on the commit generation button, the text entry for the commit message is filled with Error: Failed to get git output.
This happens regardless of whether some files are staged or not.
Expected behavior
The commit message should be generated.
Additional context
Git output from the vscode session:
2024-07-14 21:24:48.285 [info] > git config --local commit.template [85ms]
2024-07-14 21:24:48.285 [warning] git config failed: Failed to execute git
2024-07-14 21:24:48.297 [info] > git config --global commit.template [90ms]
2024-07-14 21:24:48.297 [warning] git config failed: Failed to execute git
2024-07-14 21:24:48.412 [info] > git diff --name-status -z --diff-filter=ADMR --cached [107ms]
2024-07-14 21:24:48.420 [info] > git diff --name-status -z --diff-filter=ADMR [108ms]
2024-07-14 21:24:48.432 [info] > git log --format=%H%n%aN%n%aE%n%at%n%ct%n%P%n%D%n%B -z -n5 [113ms]
2024-07-14 21:24:48.509 [info] > git diff --cached [82ms]
OS: Windows 11