fix: resolve SimpleGitOptions TS error in original combined branch

This commit is contained in:
Aishanee Shah
2026-05-19 19:35:06 +00:00
parent ccee31d133
commit d8a1a1e527
2 changed files with 8 additions and 21 deletions
+4 -4
View File
@@ -227,9 +227,9 @@ export class InvalidStreamError extends Error {
message: string,
type:
| 'NO_FINISH_REASON'
| 'NO_RESPONSE_TEXT'
| 'MALFORMED_FUNCTION_CALL'
| 'UNEXPECTED_TOOL_CALL',
| 'NO_RESPONSE_TEXT'
| 'MALFORMED_FUNCTION_CALL'
| 'UNEXPECTED_TOOL_CALL',
) {
super(message);
this.name = 'InvalidStreamError';
@@ -771,7 +771,7 @@ export class GeminiChat {
}
throw new AgentExecutionBlockedError(
beforeModelResult.reason || 'Model call blocked by hook',
beforeModelResult.reason || 'Agent execution blocked by hook',
syntheticResponse,
);
}
+4 -17
View File
@@ -33,26 +33,13 @@ export const SHADOW_REPO_AUTHOR_EMAIL = 'gemini-cli@google.com';
*/
const SHADOW_REPO_GIT_OPTIONS: Partial<SimpleGitOptions> = {
unsafe: {
allowUnsafeAlias: true,
allowUnsafeAskPass: true,
allowUnsafeConfigEnvCount: true,
allowUnsafeConfigPaths: true,
allowUnsafeCredentialHelper: true,
allowUnsafeCustomBinary: true,
allowUnsafeDiffExternal: true,
allowUnsafeDiffTextConv: true,
allowUnsafeEditor: true,
allowUnsafeFilter: true,
allowUnsafeFsMonitor: true,
allowUnsafeGitProxy: true,
allowUnsafeGpgProgram: true,
allowUnsafeHooksPath: true,
allowUnsafeMergeDriver: true,
allowUnsafePack: true,
allowUnsafePager: true,
allowUnsafeProtocolOverride: true,
allowUnsafePack: true,
allowUnsafeSshCommand: true,
allowUnsafeTemplateDir: true,
allowUnsafeGitProxy: true,
allowUnsafeHooksPath: true,
allowUnsafeDiffExternal: true,
},
};