Issue Bug Resolved

#110874Correct commit-msg hook behaviour described in AGENTS.md

Olivier Dobberkau 10/01/26, 14:19 updated 10/19/26, 15:55

Description

AGENTS.md states “No line of the message may reach 72 characters — the hook rejects the commit”. Both parts are inaccurate:

- The documented and checked limit is 72 characters per line (#103363): the hook reports lines of 73+ characters, a 72-character line is fine.
- The hook reports problems but deliberately does not abort the commit (blocking was reverted in #98094 because it could lose the commit message). It still adds a Change-Id, so agents must read the hook output instead of relying on a rejected commit.

AGENTS.md should describe the actual behaviour so coding agents check the hook output themselves.

I will create a patch for this.

Reviews 3

History 17

  1. Olivier Dobberkau commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-19T15:55:15+00:00" > 10/19/26, 15:55 </span>

    Applied in changeset commit:511c5edeee1b54eed5f2f999aa4c448754043619.