Chromium Code Reviews| Index: tests/git_cl_test.py |
| diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py |
| index cbeec08abbbed8b769c99e7230d45b97a0b6d408..b709c03a6357c2ff5e15c0ac8293172a75b9c00a 100755 |
| --- a/tests/git_cl_test.py |
| +++ b/tests/git_cl_test.py |
| @@ -801,16 +801,15 @@ class TestGitCl(TestCase): |
| expected_upstream_ref + '..' + ref_to_push],), ''), |
| ((['git', 'config', 'rietveld.cc'],), '') |
| ] |
| - receive_pack = '--receive-pack=git receive-pack ' |
| - receive_pack += '--cc=joe@example.com' # from watch list |
| + # Add cc from watch list. |
| + if ref_suffix == '': |
| + ref_suffix = '%cc=joe@example.com' |
| + else: |
| + ref_suffix += ',cc=joe@example.com' |
| if reviewers: |
| - receive_pack += ' ' |
| - receive_pack += ' '.join( |
| - '--reviewer=' + email for email in sorted(reviewers)) |
| - receive_pack += '' |
| + ref_suffix += ',' + ','.join('r=%s' % email for email in sorted(reviewers)) |
|
Bons
2016/04/13 12:44:03
>80chars
|
| calls += [ |
| - ((['git', |
| - 'push', receive_pack, 'origin', |
| + ((['git', 'push', 'origin', |
| ref_to_push + ':refs/for/refs/heads/master' + ref_suffix],), |
| ('remote:\n' |
| 'remote: Processing changes: (\)\n' |