You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rtk rewrite doesn't recognize git -C <path> <subcommand> commands. These are commonly used by Claude Code (and likely other LLM agents) when operating on repos from a different working directory.
# These all exit 1 (no rewrite):
rtk rewrite 'git -C /path/to/repo status'
rtk rewrite 'git -C /path/to/repo diff --name-only'
rtk rewrite 'git -C /path/to/repo log --oneline -5'# But these work fine:
rtk rewrite 'git status'# → rtk git status
rtk rewrite 'git log --oneline'# → rtk git log --oneline
Impact
In a real session with ~6 git commands, only 2 were rewritten because the others used git -C. The hook was working correctly but rtk rewrite didn't match the pattern.
Expected behavior
git -C <path> <subcommand> should rewrite to rtk git -C <path> <subcommand>, same as any other git command prefix.
Activity
aeppling commentedon Mar 13, 2026
Will be resolved by #547
fix: support git -C <path> in rewrite registry
fix: support git -C <path> in rewrite registry