Index: tools/push-to-trunk/push_to_trunk.py |
diff --git a/tools/push-to-trunk/push_to_trunk.py b/tools/push-to-trunk/push_to_trunk.py |
index c8fdc7e9d3865df3409dca1ccaacc02b854ea12d..8b763f54ec22ec1c062af4b32af1a8d584afb7a3 100755 |
--- a/tools/push-to-trunk/push_to_trunk.py |
+++ b/tools/push-to-trunk/push_to_trunk.py |
@@ -457,7 +457,8 @@ class UploadCL(Step): |
args = "commit -am \"Update V8 to version %s.\n\nTBR=%s\"" % (ver, rev) |
if self.Git(args) is None: |
self.Die("'git commit' failed.") |
- if self.Git("cl upload --send-mail", pipe=False) is None: |
+ force_flag = " -f" if self._options.f else "" |
+ if self.Git("cl upload --send-mail%s" % force_flag, pipe=False) is None: |
self.Die("'git cl upload' failed, please try again.") |
print "CL uploaded." |