git cl: compute reviewers and ccs before pushing change to Gerrit.

R=ehmaldonado

Bug: 877717
Change-Id: Iccfba594369d8c726fd9b077d3ac18046757e4a2
Reviewed-on: https://chromium-review.googlesource.com/c/1242845
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py
index 60fc3c8..b198f7c 100755
--- a/tests/git_cl_test.py
+++ b/tests/git_cl_test.py
@@ -1261,6 +1261,10 @@
     if title:
       ref_suffix += ',m=' + title
 
+    calls += [
+        ((['git', 'config', 'rietveld.cc'],), ''),
+    ]
+
     calls.append((
       (['git', 'push',
         'https://chromium.googlesource.com/my/repo',
@@ -1289,9 +1293,6 @@
           ((['git', 'config', 'branch.master.gerritsquashhash',
              'abcdef0123456789'],), ''),
       ]
-    calls += [
-        ((['git', 'config', 'rietveld.cc'],), ''),
-    ]
     if squash:
       calls += [
           (('AddReviewers',