Skip to content

Commit 189398e

Browse files
antonwolfyclaude
andcommitted
Update no-commit-to-branch hook to guard main instead of master
The repository's default branch is 'main'; there is no 'master' branch, so the no-commit-to-branch pre-commit hook was guarding a nonexistent branch. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3abbf5d commit 189398e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: check-added-large-files
77
- id: no-commit-to-branch
88
name: "ensure no direct commit to master/maintenance branches"
9-
args: [--branch, "master", --pattern, "maintenance/.*"]
9+
args: [--branch, "main", --pattern, "maintenance/.*"]
1010
- id: check-case-conflict
1111
- id: check-illegal-windows-names
1212
# Contents

0 commit comments

Comments
 (0)