cody: 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
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 19 (7 by maintainers)
Commits related to this issue
- fix: handle git diff path parsing on Windows (#5449) CLOSE https://linear.app/sourcegraph/issue/CODY-3601/bug-error-failed-to-get-git-output-when-using-commit-generation-on https://github.com/sourc... — committed to sourcegraph/cody by abeatrix 2 years ago
- Generate Commit Message: handle file paths match in git diff on Windows (#5483) FIX https://github.com/sourcegraph/cody/issues/4863 This PR fixes an issue where the generate commit message doesn't... — committed to visioninhope/cody by abeatrix 2 years ago
@abeatrix no problem, now that I know how to build my cody version I can keep it until fixed. @jdorfman luckily it was a temporary ban so no need to for unblock sorry about this noise.
i am also having this issue
Version: 1.98.2 Commit: ddc367ed5c8936efe395cffeec279b04ffd7db78 Date: 2025-03-12T13:32:45.399Z Electron: 34.2.0 ElectronBuildId: 11161602 Chromium: 132.0.6834.196 Node.js: 20.18.2 V8: 13.2.152.36-electron.0 OS: Darwin arm64 24.3.0
@ichim-david great idea. I will make sure the product team sees this in the weekly community feedback report (which goes out tomorrow).
Thanks @abeatrix
@ichim-david I will add this to my calendar and make sure it gets addressed. Going to echo Beatrix, thanks so much for the ping and debugging, it will get it fixed faster!
Hey @ichim-david thanks for the ping and for debugging this issue šāāļø
Iām currently on PTO but will look into first thing when Iām back on Tuesday!
If you can share your email on your Cody account with us, I can try to ask the team to unblock you. Cc @jdorfman