tooling: no-commit-on-main hook blocks git merge-base
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- git
- Domain
- tooling
Research direction
Start in the user's ~/.claude settings and locate the PreToolUse Bash hook that matches git commit, rebase, cherry-pick, or merge. Reproduce the blocked git merge-base --is-ancestor freshness check from the primary checkout, then verify that the hook still blocks the listed write operations while allowing this read-only command.
Written by the indexing model from the issue text.
Description
The PreToolUse Bash hook matches the regex git ... (commit|rebase|cherry-pick|merge)\b. Since \b matches before a hyphen, git merge-base --is-ancestor also counts as a merge. Run from the primary checkout, which is on main, the read-only freshness check is blocked (seen 2026-09-26 while landing #481). Fix: require whitespace or end of string after the verb instead of \b. The hook lives in the user's settings (~/.claude), not in this repo.
- Dominant language
- Kotlin
- Stars
- 228
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from timusus/Shuttle2
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
task
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
All issues in timusus/Shuttle2
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
mobile-dev-inc/Maestro#3646 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
GetStream/stream-chat-android#6762 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SimonHalvdansson/Harmonic-HN#363 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day