--bypass-hooks should bypass all checks, including descriptions checks.
(Adding this after the pretty bad build bustage today.)
Review URL: https://chromiumcodereview.appspot.com/10891039
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@153966 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index e250c8e..9715f31 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1254,9 +1254,12 @@
description = cl.GetDescription()
if not description:
- print 'No description set.'
- print 'Visit %s/edit to set it.' % (cl.GetIssueURL())
- return 1
+ if not cl.GetIssue() and options.bypass_hooks:
+ description = CreateDescriptionFromLog([base_branch])
+ else:
+ print 'No description set.'
+ print 'Visit %s/edit to set it.' % (cl.GetIssueURL())
+ return 1
if cl.GetIssue():
description += "\n\nReview URL: %s" % cl.GetIssueURL()