Gerrit git cl: temporary disable cc option on upload.
Gerrit doesn't allow arbitrary non-member emails for now,
thus removign this feature until either Gerrit allows it,
or we have a per-repo opt-in way.
TBR=andybons@chromium.org
BUG=604377
Review URL: https://codereview.chromium.org/1895863002
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299988 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index cf1e2c9..d8fd642 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -2453,7 +2453,10 @@
cc.extend(options.cc)
cc = filter(None, cc)
if cc:
- refspec_opts.extend('cc=' + email.strip() for email in cc)
+ # refspec_opts.extend('cc=' + email.strip() for email in cc)
+ # TODO(tandrii): enable this back. http://crbug.com/604377
+ print('WARNING: Gerrit doesn\'t yet support cc-ing arbitrary emails.\n'
+ ' Ignoring cc-ed emails. See http://crbug.com/604377.')
if change_desc.get_reviewers():
refspec_opts.extend('r=' + email.strip()