Landing: 0cdde1399d2d

Project / Subsystem

binutils / binutils/gdb

Date

2026-07-17

Author

Tom de Vries <vries@sourceware.org>

Commit

0cdde1399d2d453569fe91c55b34b4879f8a6501

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
binutils/gdb
patch_id
commit_hash
0cdde1399d2d453569fe91c55b34b4879f8a6501
source_type
public_inbox
headline
Fix pre-commit hook for commit messages
tldr
Corrects the pre-commit hook configuration to ensure the codespell-log hook correctly processes commit messages.
author
Tom de Vries <vries@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • binutils
  • gdb
  • pre-commit
  • hooks
  • testing
discussion_id_link
bugzilla_pr
date
2026-07-17T00:00:00.000Z

This commit addresses an issue where the codespell-log pre-commit hook was not being triggered for commit messages. A recent change to the files filter in .pre-commit-config.yaml inadvertently excluded the .git/COMMIT_EDITMSG file, which is used by commit-msg hooks. The fix updates the configuration to include .git/COMMIT_EDITMSG in the filter, ensuring the hook properly analyzes commit messages, and also adjusts the associated regression test to accurately detect the issue.