Skip to content

Commit 0e8fc16

Browse files
committed
fix(cli): guard Gemini coverage cleanup on Windows
Signed-off-by: Andy11-cpu <canada11@duck.com>
1 parent b0713cc commit 0e8fc16

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/cli/cli.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8919,7 +8919,10 @@ static void install_gemini_config(const char *home, const char *binary_path, boo
89198919
if (!g_install_hooks) {
89208920
if (!dry_run) {
89218921
int tool_result = cbm_remove_gemini_hooks(cp);
8922-
int coverage_result = cbm_remove_gemini_coverage_hook(cp, binary_path);
8922+
int coverage_result = CLI_OK;
8923+
#ifndef _WIN32
8924+
coverage_result = cbm_remove_gemini_coverage_hook(cp, binary_path);
8925+
#endif
89238926
int session_result = cbm_remove_gemini_session_hooks(cp);
89248927
if (tool_result != CLI_OK || coverage_result != CLI_OK || session_result != CLI_OK) {
89258928
record_agent_config_error(false, "Gemini CLI", "hook_disable", cp);

0 commit comments

Comments
 (0)