commit | 70c4a1ad322f3ab1a8bcd20828ad5fac3000d2c7 | [log] [tgz] |
---|---|---|
author | Rob Mohr <mohrr@google.com> | Tue Sep 01 13:19:43 2020 -0700 |
committer | CQ Bot Account <commit-bot@chromium.org> | Wed Sep 02 17:10:25 2020 +0000 |
tree | 081f571df902ad293349326821bef2a8de13f2b4 | |
parent | 24a6e27ca82f14aa690075a5ad9003d8fc87514e [diff] |
pw_presubmit: Log evaluated commit message Change-Id: I7152f1c281d579e9d2d98ed7dd3dd0d2cbcbf8ef Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/17281 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Rob Mohr <mohrr@google.com>
diff --git a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py index 0b79dc7..ff3515f 100755 --- a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py +++ b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
@@ -345,6 +345,11 @@ """Checks that the top commit's message is correctly formatted.""" lines = git_repo.commit_message().splitlines() + # Show limits and current commit message in log. + _LOG.debug('%-25s%+25s%+22s', 'Line limits', '50|', '72|') + for line in lines: + _LOG.debug(line) + if not lines: _LOG.error('The commit message is too short!') raise PresubmitFailure