diff options
| author | Jenkins <jenkins@review.openstack.org> | 2013-03-05 00:28:05 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-03-05 00:28:05 +0000 |
| commit | e2d956ccaab96c7035fdda2c825ecc1e7bb5423a (patch) | |
| tree | 53aa24a909767a7d187b6866ec4611b8e23f2548 /tools | |
| parent | a246cb90d229aea5cf70d886ad76061d5ad59010 (diff) | |
| parent | 4ac268a4b620eecc4af1f4ffdc0a836d7260d126 (diff) | |
| download | nova-e2d956ccaab96c7035fdda2c825ecc1e7bb5423a.tar.gz nova-e2d956ccaab96c7035fdda2c825ecc1e7bb5423a.tar.xz nova-e2d956ccaab96c7035fdda2c825ecc1e7bb5423a.zip | |
Merge "docs should indicate proper git commit limit"
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/hacking.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/hacking.py b/tools/hacking.py index e339966ee..4e2331054 100755 --- a/tools/hacking.py +++ b/tools/hacking.py @@ -596,7 +596,7 @@ def once_git_check_commit_title(): nova HACKING recommends not referencing a bug or blueprint in first line, it should provide an accurate description of the change N801 - N802 Title limited to 50 chars + N802 Title limited to 72 chars """ #Get title of most recent commit @@ -621,6 +621,8 @@ def once_git_check_commit_title(): "description of the change, not just a reference to a bug " "or blueprint" % title.strip()) error = True + # HACKING.rst recommends commit titles 50 chars or less, but enforces + # a 72 character limit if len(title.decode('utf-8')) > 72: print ("N802: git commit title ('%s') should be under 50 chars" % title.strip()) |
