Ticket #7326 (closed defect: wontfix)
post-commit-hook doesn't fire if command and ticket number on different lines
| Reported by: | jenn@… | Owned by: | jhampton |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | version control | Version: | 0.11 |
| Severity: | normal | Keywords: | trac-post-commit-hook |
| Cc: |
Description
We were having intermittent mysterious failures of post-commit-hook, where the commit succeeded and seemed correctly worded but the changeset wasn't reflected in the ticket. We finally noticed that in the cases where it wasn't working, something had introduced a line break between the "fixes" or "closes" or "refs" and the ticket number.
The obvious workaround is not to break the command and ticket number across lines, but we don't do it intentionally; svn or something is wrapping things at 80 columns for us, thereby introducing line breaks at arbitrary spots.
In consultation on #trac, we came up with the fix of replacing the .? (any single character) at the end of the action with \s* (any whitespace, including newline), which makes a little more sense to me anyway. But that breaks the "fixes:1234" syntax for some reason. This is at the end of this line.
I don't have time to test more permutations, alas. But hopefully this will get someone started on handling multiline commit messages in trac-post-commit-hook.


