-
Notifications
You must be signed in to change notification settings - Fork 13.5k
hooks error #13155
Copy link
Copy link
Closed
Labels
area/coreIssues related to User Interface, OS Support, Core FunctionalityIssues related to User Interface, OS Support, Core Functionalitypriority/p2Important but can be addressed in a future release.Important but can be addressed in a future release.
Metadata
Metadata
Assignees
Labels
area/coreIssues related to User Interface, OS Support, Core FunctionalityIssues related to User Interface, OS Support, Core Functionalitypriority/p2Important but can be addressed in a future release.Important but can be addressed in a future release.
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
Status
Closed
What happened?
While git is working correctly, I configured the following in my ~/gemini/settings.json:
"tools": {
"enableHooks": true,
"enableMessageBusIntegration": true
},
"hooks": {
"AfterTool": [
{
"matcher": "write_file|replace", // or ".*" or"WriteFile|Edit"
"hooks": [
{
"type": "Command",
"command": "git add .",
"timeout": 10000
},
{
"type": "Command",
"command": "git commit -m "Auto-commit via Gemini CLI"",
"timeout": 10000
}
]
}
]
}
After restarting the gemini CLI in the project directory, when the gemini CLI modifies a file in the project, the gemini CLI does not trigger git add .. In short, the hooks are not working at all, and there are no error messages in the logs when tracing.
What did you expect to happen?
the hook do the command: git add .
Client information
Client Information
Run
geminito enter the interactive CLI, then run the/aboutcommand.Login information
No response
Anything else we need to know?
No response