commit-push-pr.md uses invalid git flag --branch (should be -b)

Status Closed — not planned
Maintainer reply None cached
Activity 2 comments · opened May 23, 2026 · closed Jun 23, 2026

Bug

The allowed-tools field in plugins/commit-commands/commands/commit-push-pr.md (line 2) and .claude/commands/commit-push-pr.md (line 2) includes 'Bash(git checkout --branch:*)'. Git does not have a --branch flag for git checkout. The correct flag to create a new branch is -b. This means the permission pre-approval will never match actual commands like 'git checkout -b feature-x'.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗