Claude Code automatically executes local "git" file...
Status Closed — not planned
Maintainer reply None cached
Activity 3 comments · opened Aug 2, 2025 · closed Jan 3, 2026
Local executable "git" is executed on Claude Code startup
When starting Claude Code in a directory containing an executable file named "git", this file is automatically executed.
Steps to reproduce:
- Create executable file named "git" with shell commands
- Start claude in same directory
- File starts automatically and without feedback
Result: Commands in local "git" file run with user privileges
Expected: No automatic execution of local files
Environment: Linux
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗