From 189398ee6846d3ceb76ea6aa7f1297cdda634f81 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 29 Jul 2026 13:31:26 +0200 Subject: [PATCH] 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) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 01bc329a..0c94d34a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: - id: check-added-large-files - id: no-commit-to-branch name: "ensure no direct commit to master/maintenance branches" - args: [--branch, "master", --pattern, "maintenance/.*"] + args: [--branch, "main", --pattern, "maintenance/.*"] - id: check-case-conflict - id: check-illegal-windows-names # Contents