From ac63715662e31667ed1f9eb155c7cde64a0d39aa Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Mon, 16 Jan 2012 14:19:54 +0000 Subject: [PATCH] Send an IM when hooks are bypassed to git cl dcommit R=cmp@chromium.org BUG=25940 TEST= Review URL: http://codereview.chromium.org/9112039 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@117850 0039d316-1c4b-4281-b951-d872f2087c98 --- git_cl.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/git_cl.py b/git_cl.py index 759caf6a8..eb93403f7 100755 --- a/git_cl.py +++ b/git_cl.py @@ -1094,6 +1094,11 @@ def SendUpstream(parser, args, cmd): elif 'unknown' == status: print ('Unable to determine tree status. Please verify manually and ' 'use "git cl dcommit -f" to commit on a closed tree.') + else: + breakpad.SendStack( + 'GitClHooksBypassedCommit', + 'Issue %s/%s bypassed hook when committing' % + (cl.GetRietveldServer(), cl.GetIssue())) description = options.message if not description and cl.GetIssue():