Ignore CC_LIST when private flag is specified.
This prevents private CLs to be automatically CC-ed to public mailing lists
unintentionally.
Review URL: https://chromiumcodereview.appspot.com/24257014
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@225925 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py
index 40d1813..23c0c64 100755
--- a/tests/git_cl_test.py
+++ b/tests/git_cl_test.py
@@ -188,15 +188,16 @@
@classmethod
def _git_upload_calls(cls, private):
if private:
+ cc_call = []
private_call = []
else:
+ cc_call = [((['git', 'config', 'rietveld.cc'],), '')]
private_call = [
((['git', 'config', 'rietveld.private'],), '')]
return [
((['git', 'config', 'core.editor'],), ''),
- ((['git', 'config', 'rietveld.cc'],), '')
- ] + private_call + [
+ ] + cc_call + private_call + [
((['git', 'config', 'branch.master.base-url'],), ''),
((['git',
'config', '--local', '--get-regexp', '^svn-remote\\.'],),