diff --git a/git_cl.py b/git_cl.py index f78839b2d..fc0348506 100755 --- a/git_cl.py +++ b/git_cl.py @@ -913,7 +913,7 @@ def GerritUpload(options, args, cl): git_command = ['push'] if receive_options: - git_command.append('--receive-pack="git receive-pack %s"' % + git_command.append('--receive-pack=git receive-pack %s' % ' '.join(receive_options)) git_command += [remote, 'HEAD:refs/for/' + branch] RunGit(git_command) diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py index 447b352ce..2c6b55386 100755 --- a/tests/git_cl_test.py +++ b/tests/git_cl_test.py @@ -352,12 +352,12 @@ class TestGitCl(TestCase): description), ((['git', 'config', 'rietveld.cc'],), '') ] - receive_pack = '--receive-pack="git receive-pack ' + receive_pack = '--receive-pack=git receive-pack ' receive_pack += '--cc=joe@example.com' # from watch list if reviewers: receive_pack += ' ' receive_pack += ' '.join(['--reviewer=' + email for email in reviewers]) - receive_pack += '"' + receive_pack += '' calls += [ ((['git', 'push', receive_pack, 'origin', 'HEAD:refs/for/master'],), '')